aquaballoon

cron

Jul 8th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. $ crontab -e
  2.  
  3. # m  h  dom mon dow   command
  4.   0  2  *   *   0     sh /sh/sysbackup.sh
  5.   0  8  *   *   1-5   sh /sh/iptables_block.sh
  6.   0  17 *   *   1-5   sh /sh/iptables_open.sh
  7.  
  8. $ sudo select-editor
  9.  
  10. string         meaning
  11. ------         -------
  12. */5 * * * *    Run every 5 minuets.
  13. 5   * * * *    Run at the 5th minute of the hour.
  14. @reboot        Run once, at startup.
  15. @yearly        Run once a year, "0 0 1 1 *".
  16. @annually      (same as @yearly)
  17. @monthly       Run once a month, "0 0 1 * *".
  18. @weekly        Run once a week, "0 0 * * 0".
  19. @daily         Run once a day, "0 0 * * *".
  20. @midnight      (same as @daily)
  21. @hourly        Run once an hour, "0 * * * *".
Advertisement
Add Comment
Please, Sign In to add comment