dongwupei7803 2016-02-07 19:41
浏览 101

在我的生产服务器上寻找cron / scheduler作业

ON my production server every saturday weekly emailer task starts and we all start getting emails. However I am not able to figure out where this cron job is set on my server or in my php joomla code.

I have checked crontab -e output and its like as below:

# 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

as everything here is commneted I presume there is cron job placed.

Please let me know what all should I look into so that I can get to know how this weekly emailer is being triggered. Any kind of help is appreciated !!

  • 写回答

1条回答 默认 最新

  • douhuan5073 2016-02-07 20:19
    关注

    Got it by running the below script:

    for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

    It showed all the cron jobs listed by all users

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类