Crontab issue
I am getting right output through manually execute the script but got issue when I was running in crontab.
In crontab it was giving me different output (not expected) .
I have added below lines in crontab -e
SHELL=/bin/bash
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
In crontab it was giving me different output (not expected) .
I have added below lines in crontab -e
SHELL=/bin/bash
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Now it is working fine.
Thanks
Comments
Post a Comment