crontab -l 查看定时任务
crontab -e 编辑定时任务
任务可如下:
00 16 * * * nohup sh /usr/home/John/test.sh > test.log 2>&1 &
00 16 * * * cd /usr/home/John;sh test.sh > ./test1.log 2>./test2.log &
讲解详细:
http://www.chinaunix.net/jh/6/271992.html
crontab -l 查看定时任务
crontab -e 编辑定时任务
任务可如下:
00 16 * * * nohup sh /usr/home/John/test.sh > test.log 2>&1 &
00 16 * * * cd /usr/home/John;sh test.sh > ./test1.log 2>./test2.log &
讲解详细:
http://www.chinaunix.net/jh/6/271992.html