All of my cronjob scripts run from a specific directory. Can I add cd /FOLDER/PATH
at the top of the crontab
file and expect all scripts to be run from that directory?
Currently all my crontab functions are like this (ignore lack of specific run frequencies)
* * * * * cd /FOLDER/PATH && python3 File.py
* * * * * cd /FOLDER/PATH && python3 File2.py
* * * * * cd /FOLDER/PATH && python3 File3.py
I would rather it be like
cd /FOLDER/PATH
* * * * * python3 File.py
* * * * * python3 File2.py
* * * * * python3 File3.py