设置计划任务cron
[root@server0 /]# crontab-e
no crontab for root - using an empty one
crontab: installing new crontab
[root@server0 /]# crontab-l
*/1* * * * echo " I love you Baby! "
[root@server0 /]#
Youhave new mail in /var/spool/mail/root
[root@server0 /]# tailvar/spool/mail/root
X-Cron-Env:<SHELL=/bin/sh>
X-Cron-Env:<HOME=/root>
X-Cron-Env:<PATH=/usr/bin:/bin>
X-Cron-Env:<LOGNAME=root>
X-Cron-Env:<USER=root>
Message-Id:<20151001095501.A830C199014@server0.example.com>
Date:Thu, 1 Oct 2015 17:55:01 +0800 (CST)
I love you Baby!
[root@server0 /]#
本文转自810105851 51CTO博客,原文链接:http://blog.51cto.com/4708948/1701860,如需转载请自行联系原作者