simple cron job: not working
I wrote a scrpit that plays a song (an MP3)
Code:
#!/bin/bash i made a cron job to run this script at 8 am every day: Code:
0 8 * * * robert /home/robert/alarm > /dev/null 2>&1 doesnt output all the extra text that comes with runnign mpg123. now, i decided to make a cron job to run this every 5 minutes so i could test it out now (to see if it works). Code:
*/5 * * * * ....(same as above) Code:
Oct 31 00:30:00 decatur CRON[5523]: (robert) CMD (/home/robert/alarm > /dev/null 2>&1) The goal is to use my computer as my alarm clock :) im using Vixie cron in Gentoo (vcron). |
extra note, the script and mp3 file are owned by user "robert" and the script is set to run as user "robert" not root..
|
Just thinking aloud:
Who's cron are you running it from? Your's or root's? |
hi, don't use mpg123 to play the music, please use mpg321 instead....
mpg123 got no problem with playing sound in console, but when come to cronjob, you need mpg321 to play it .. and set the process to "quiet". |
All times are GMT -5. The time now is 02:17 AM. |