设置计划任务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 /]#
本文出自 “Yolo” 博客,请务必保留此出处http://4708948.blog.51cto.com/4698948/1701860
原文地址:http://4708948.blog.51cto.com/4698948/1701860