为了账号安全,请及时绑定邮箱和手机立即绑定

为什么使用/etc/crontab方式设置任务 ,crontab -l 依然是no crontab

为什么使用/etc/crontab方式设置任务 ,crontab -l 依然是no crontab

little_newbee 2018-03-01 10:24:45
SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=root# For details see man 4 crontabs# Example of job definition:# .---------------- minute (0 - 59)# |  .------------- hour (0 - 23)# |  |  .---------- day of month (1 - 31)# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat# |  |  |  |  |# *  *  *  *  * user-name  command to be executed*/5 * * *  root  /ftpfile/test.sh            需要注意的点,加user-name这些都注意了,如果使用crontab -e的方式是可以查看到的,并且程序正常执行,但是这种方式查看不到了。求原因。
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1703 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信