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

Now it is working fine.

Thanks

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps