Click to See Complete Forum and Search --> : cron confused


fod
04-27-2001, 07:05 PM
Could somebody help me out with the cron command to shedule a program to run at 8am, and launch a certain command?

I have tried and failed misably :P

Thanks

foo_bar
04-29-2001, 03:37 PM
Depends on how you want it run, but if you want it run as root, just edit the /etc/crontab file. If you want a personal crontab (ie. as a user), do a "crontab -e". Here's an example file to page someone at 8:00am on Monday, Wed., and Friday.

# m h dom mon dow command
00 08 * * 1,3,5 qpage someone "Wake up sleepy"

I keep the cheat sheet in at the top of every crontab so I don't have to look it up all the time.

m=minute
h=hour
dom=day of month
mon=month
dow=day of week
command=command :)

fod
04-29-2001, 06:25 PM
So what would it be to start xmms ?

Thanks btw

foo_bar
04-30-2001, 03:30 PM
Just substitute the command of your choice :)

00 08 * * 1,3,5 xmms

fod
04-30-2001, 05:02 PM
cheers