• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    scheduled job in debian – crontab


    Show 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