- Need to change relative paths to absolute paths
- Need to replace /bin/bash to absolute reference ie. /usr/bin/bash
- In the
crontab -e
need to add following PATH to run a scriptPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- Add the
PATH
at the top of the shell script - Now set the timer, we should be good to go.
Created
August 4, 2022 09:23
-
-
Save kirankotari/8bf0e8f11606ccbe1d27810caf0ac2f7 to your computer and use it in GitHub Desktop.
cronjob running a shell script from it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment