Skip to content

Instantly share code, notes, and snippets.

@twtw
Created August 19, 2013 01:10
Show Gist options
  • Save twtw/6265001 to your computer and use it in GitHub Desktop.
Save twtw/6265001 to your computer and use it in GitHub Desktop.
crontab for schedule to play music
# crontab for schedule to play music
39 * * * * /usr/sbin/ntpdate -s ntp.ntu.edu.tw > /dev/null 2>&1
0 10 * * 1-5 /usr/bin/mpg321 --list /home/user/M/ten.txt
0 12 * * 1-5 /usr/bin/mpg321 -g 40 --list /home/user/M/noon.txt
0 13 * * 1-5 /usr/bin/mpg321 --list /home/user/M/wakeup.txt
0 15 * * 1-5 /usr/bin/mpg321 --list /home/user/M/teatime.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment