简体   繁体   中英

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. But incron doesn't seem to have the same functionality. So where do stdout/stderr go to?

It would be nice if it could mail it like cron, but it currently just ignores all output.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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