scheduled job in debian – crontab
June 22nd, 2010Show jobs with: crontab -l
Edit jobs with: crontab -e
Examples:
44 13 * * * /etc/webmin/cron/tempdelete.pl
00 3Â * * * /root/restartMySQL.sh
First line runs script every day at 13:44
second line runs script every day at 3:00
restartMySQL.sh
#! /bin/sh
/etc/init.d/mysql restart
Remember execute right
dos2unix restartMySQL.sh
apt-get install tofrodos