View Full Version : gnome-schedule & crontab

16th April 2008, 04:01 AM
First as root, I created a file /etc/cron.allow and placed my everyday user's name in there.
Then I created a script, /usr/local/bin/alarm, and chmod 700 /usr/local/bin/alarm.

amarok -p /mnt/music/Music/RADIO/indie103.1.pls

and finally edited my crontab

#m h dom mon dow command
00 07 * * 1-5 /usr/local/bin/alarm

but it still does not start.
I also tried this with gnome-schedule, which is really cool, but Still can't execute my script.

Note. The original code for the script was #!/bin/bash then I changed it to #!/bin/sh.

Why won't crontab run my job????

16th April 2008, 06:06 AM
Does the command work when you run it from a terminal as your regular user?

Sorry, but not knowing whether you have tried it or not, I have to ask.

I have the same setup ( my alarm just doesn't cut it, but the 5.1 does :D ) and I use gnome-schedule because it's a cool front-end, never had a problem with it.

In my case I just copied a loud song into my /home and renamed it to alarm then I just used the command

mplayer alarm

in gnome-schedule, no other setup was needed.

16th April 2008, 06:25 AM
The program does work from the command line. I just type
"alarm" and amarok will start playing the file listed in the script.