开发者

not getting output when scheduled a jcl program in crontab

开发者 https://www.devze.com 2023-03-16 16:27 出处:网络
dear friends i have a jcl program that uses PCO program .I want to schedule it every minute using crontab .i have don开发者_高级运维e the entry in cronntab like below

dear friends i have a jcl program that uses PCO program .I want to schedule it every minute using crontab .i have don开发者_高级运维e the entry in cronntab like below * * * * * path/job but the crontab is not producing any output but when i am seeing /var/log/crontab it is showing that crond has executed the job every minute but i am not getting any output Plz help how to schedule that job

I have read in internet that it can be because of environment variables not set properly plz tell if that can be the case


Where do you expect the output to show up ? 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.

So you should redirect the output

 * * * * * path/job > /path/to/file

Alternatively, check your mail (mail).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号