linux - 在 crontab 中安排 jcl 程序时没有得到输出

标签 linux scheduling cron

亲爱的 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/

相关文章:

java - JBoss 4.0.5 启动需要 15 分钟部署单个 war 文件

linux - Jenkins 异常

linux - 使用ash shell "for x in y"

javascript - 将 this.unblock() 与 Meteor percolate 一起使用 :synced-cron

php - Cron 作业神秘地运行和停止?

linux - 使用 incrontab mv 文件生成 0 字节文件

linux - ext4 分区是否包含有关其自身开始和结束位置的数据?

java - 检查定期 ScheduledFuture 是否正在运行

c - 锁定顺序或调度问题

java - Spring boot Web服务/微服务和调度