crontab scheduled task summary

1, regular tasks before writing comments;

2, put the command after a successful test script file (if the command crontab to write directly inside, you need to write about the escape)

3, to cancel the unwanted output command script such packaging is removed parameter v, will fill the inode

4, the front script / bin / sh execute a script, the script needed full path;

5, the timing task ends connected> / dev / null 2> & 1

6, fixed script file directory / server / scripts

example:

00 */2 * * * /bin/sh ~/tar_services.sh >dev/null 2>&1

Note that the above every two hours in front of 00, if the 00 languages ​​* will perform once per minute

Guess you like

Origin www.cnblogs.com/zhutao-niuniu2014/p/11415358.html