【发布时间】:2018-07-17 11:13:32
【问题描述】:
我在我的AWS EC2 Instance 上使用Webmin
我创建了几个每分钟运行的 cron 任务。
在脚本模式下
/var/spool/cron/crontabs/root
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.abHzd4/crontab installed on Wed Feb 7 06:53:10 2018)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
1 * * * * cd /home/ubuntu/public_html && bin/cake generate_script auto_post
1 * * * * cd /home/ubuntu/public_html && bin/cake generate_script timeline
1 * * * * cd /home/ubuntu/public_html && bin/cake queue runworker
5 * * * * cd /home/ubuntu/public_html && bin/cake social_upload upload
2 * * * * cd /home/ubuntu/public_html && bin/cake delete_youtube_videos delete
但它并不是每分钟都运行。
另外,如何在 Webmin 中启用 cron 日志记录?
【问题讨论】:
标签: amazon-ec2 cron webmin