在我的生产服务器上每周六每周一次的电子邮件任务开始,我们都开始收到电子邮件。但是我无法弄清楚我的服务器或php joomla代码中的cron作业设置在哪里。
我已经检查了crontab -e输出,如下所示:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
因为这里的所有内容都是通知的,我认为已经安排了cron工作。
请让我知道我应该调查什么,这样才能知道每周电子邮件是如何被触发的。任何形式的帮助表示赞赏!!
答案 0 :(得分:1)
通过运行以下脚本获得它:
用于$中的用户(cut -f1 -d:/ etc / passwd); do crontab -u $ user -l;完成
它显示了所有用户列出的所有cron作业