亲爱的 friend 们,我有一个使用 PCO 程序的 jcl 程序。我想使用 crontab 每分钟安排一次。我已经完成了 cronntab 中的条目,如下所示 * * * * * 路径/工作 但是 crontab 没有产生任何输出,但是当我看到/var/log/crontab 时,它显示 crond 每分钟都执行了该作业,但我没有得到任何输出 请帮助如何安排该工作
我在网上看到可能是因为环境变量设置不当 请告诉我是否可以这样
最佳答案
您希望输出显示在哪里? crontab
If standard output and standard error are not redirected by commands executed from the crontab entry, any generated output or errors shall be mailed, via an implementation-defined method, to the user.
所以你应该重定向输出
* * * * * path/job > /path/to/file
或者,检查您的邮件(邮件
)。
关于linux - 在 crontab 中安排 jcl 程序时没有得到输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6533224/