Answer the question
In order to leave comments, you need to log in
Why doesn't Job work?
Hello.
Created a job in crontab as root
# job
1 19 * * * /opt/project1/start.sh
May 11 19:01:01 server01 CROND[127428]: (root) CMD (/opt/project1/start.sh)
Answer the question
In order to leave comments, you need to log in
I ran into a similar problem and solved it like this:cd /opt/project1/ && ./start.sh
decided like this
/data/Anaconda2-4.4.0/envs/python36/bin/python opt/project1/Table_Control.py opt/project1/connection.yaml
BUT I still don't understand why the same script is interpreted differently if to run it from the shell, then there is no problem, but if through cron, then some other environment is selected ....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question