I did write shell script
#!/bin/bash
#clear
#echo "Good morning, world."
source activate python36
python /opt/project1/Table_Control.py opt/project1/connection.yaml
After I did write in cron
# job
1 19 * * * /opt/project1/start.sh
and did try else other variant
# job
1 19 * * * cd /opt/project1/ && ./start.sh
Did check and got result
May 11 19:01:01 server01 CROND[127428]: (root) CMD (/opt/project1/start.sh)
and
May 11 19:43:01 server01 CROND[13797]: (root) CMD (cd /opt/project1/ && ./start.sh)
BUT Job must to send me email, has not received any email ((
Did run shell script
/opt/project1/start.sh
work GOOD.
How solve this problem?
python
may not be in the the PATH of the environment running the cronjob. Try using the full path forpython