Hello,
I'm trying to get cron to call in the correct path's. When I run a Python script from shell the script run's fine as it uses the path's set in bashrc but when I use cron all the path's are not used from bashrc. Is there a file I can enter the path's into for cron like bashrc or a way to call the path's from bashrc.
Sorry I don't think I worded this correctly, I can get the correct script to run (meaning the path to the script in crontab is not the problem here), it's just when that script is running I run a build and this uses the PATH's set in .bashrc
. When I run the script when I'm logged in, the .bashrc
path's are pulled in. Since cron doesn't run in a shell per say it does not pull in .bashrc
. So is there a way of pulling this in without having to write a bash script wrapper?
Thanks