Crontab

Hello,

I have a situation with crontab command on AIX , when i run a script with crontab i receive empty output , when i run it manually i have information in it,beside the empty output ,SAS log is empty too, i don't know why isn't creating it , could someone told me how could verify crontab command ??

Thank you,

cron is run with an extremely limited PATH environment, quite probably your script isn't finding commands its trying to run.

You might try something like

* * * * * . /etc/profile ; /path/to/script to get a more complete profile before running your script, or modify the script itself to set a more complete PATH value before you do anything else.

1 Like

Thank You Corona688 for your help,

could you be more specific , where i have to put the command ? in the window when i write crontab -e. In the blank window ?
i have to put

* * * * * . /etc/profile ( what do you mean with this ? ) 

Best regards,

Hello,

something like .

00    18      *       *       1-5     export USER=jobs110;sh /erpln/bse/etc/rc.startjob 110-00-0003

or

* * * * *       /usr/bin/ksh /erpln/bse/etc/check_modified_files_all.sh 2>&1 >> /erpln/bse/etc/check_modified_files_all.log

Regards

1 Like