将 vixie-cron 日志记录到文件中

发布于 2024-10-07 04:17:05 字数 105 浏览 0 评论 0原文

我试图让 vixie-cron 将任何输出发送到日志文件,而不是作为电子邮件发送给 root(或用户)。是否有配置方法可以执行此操作,而不是在命令中重定向 stderr 和 stdout 文件流?

I am trying to get vixie-cron to send any output to a log file rather than as an email to root(or user). Is there are configuration way to do this rather than redirecting the stderr and stdout file streams within the command ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ζ澈沫 2024-10-14 04:17:05

不,据我所知没有。

然而,还有其他的croncronie有-s用于将输出记录到syslog)。

No. Not that I know of.

However there are other cron (cronie has -s for logging output to syslog).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文