简体   繁体   English

问:incrond - SDTOUT 和 STDERR 去哪里了?

[英]Q: incrond - where does SDTOUT and STDERR go?

Coming from cron I do know that stdout/stderr is mailed to the user executing the script.来自 cron 我确实知道 stdout/stderr 被邮寄给执行脚本的用户。 But incron doesn't seem to have the same functionality.但是 incron 似乎没有相同的功能。 So where do stdout/stderr go to?那么 stdout/stderr 去哪里呢?

It would be nice if it could mail it like cron, but it currently just ignores all output.如果它可以像 cron 一样邮寄它会很好,但它目前只是忽略所有输出。

As you cannot include redirection( > or >> ) in the command specification the best way seems to be a small script that calls the desired command and redirects the output to a file or mailprogram.由于您不能在命令规范中包含重定向( >>> ),因此最好的方法似乎是调用所需命令并将输出重定向到文件或邮件程序的小脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM