linux crontab结束,linux – Crontab:有开始和结束时间的日志吗?
男子cron
你應(yīng)該看到類似的東西
-L loglevel
Sets the loglevel for cron. The standard logging level (1) will
log the start of all the cron jobs. A higher loglevel (2) will
cause cron to log also the end of all cronjobs, which can be
useful to audit the behaviour of tasks run by cron. Logging
will be disabled if the loglevel is set to zero (0).
要使用該選項(xiàng),您可以查看/ etc / default / cron
至少在Debian中它有這樣的評(píng)論:
# Extra options for cron, see cron(8)
# For example, set a higher log level to audit cron's work
# EXTRA_OPTS="-L 2"
在更改配置文件后,您需要重新啟動(dòng)Cron:
/etc/init.d/cron restart
總結(jié)
以上是生活随笔為你收集整理的linux crontab结束,linux – Crontab:有开始和结束时间的日志吗?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: iQOO TWS1好不好用 智能降噪耳机
- 下一篇: linux 其他常用命令