at

跑任务,很多人喜欢crond,自然是配置crontab。但是对于单个的、无须循环的job 我倒是特别倾向于

at:

[gavin@SH5 scripts]$ at -t now+3 today
at> php /home/gavin/web/front_end/scripts/geturlforgoogle.php
at> ^D
job 7 at 2006-01-11 14:18
[gavin@SH5 scripts]$ at -l
7       2006-01-11 14:18 = gavin

OK,现在可以exit。job执行完了后就会把输出以邮件的形式发给你!非常方便,无须担心忘记了crontab -r而又重新跑了这个job 

Leave a Reply




=>


Creative Commons License
This work is licensed under a Creative Commons License.