【发布时间】:2012-04-24 07:16:26
【问题描述】:
我写了一个程序,可以输出到stderr。当我通过 Linux crontab 运行它时,我必须重定向 stderr。如果没有,程序将以SIGPIPE 退出。为什么?
不行
45 10 * * * /home/sandy/test > /home/sandy/test.log &
好的
45 10 * * * /home/sandy/test > /home/sandy/test.log 2>&1 &
【问题讨论】:
-
不应该。你能发布你的程序吗?检查@Lars Kotthoff 的回复。
标签: linux crontab stderr sigpipe