Is there a command or an existing script that will let me view all of a *NIX system's scheduled cron jobs at once?
(是否有命令或现有脚本可以让我一次查看所有* NIX系统的预定cron作业?)
I'd like it to include all of the user crontabs, as well as /etc/crontab
, and whatever's in /etc/cron.d
. (我希望它包含所有用户crontabs,以及/etc/crontab
,以及/etc/cron.d
任何内容。)
It would also be nice to see the specific commands run by run-parts
in /etc/crontab
. (看到/etc/crontab
run-parts
运行的特定命令也很好。)
Ideally, I'd like the output in a nice column form and ordered in some meaningful way.
(理想情况下,我希望以一种漂亮的列形式输出并以一些有意义的方式排序。)
I could then merge these listings from multiple servers to view the overall "schedule of events."
(然后,我可以合并来自多个服务器的这些列表,以查看整个“事件安排”。)
I was about to write such a script myself, but if someone's already gone to the trouble...
(我本来就要写这样一个剧本,但是如果有人已经麻烦了......)
ask by yukondude translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…