Python script is not being run, all other functions are running and stand alone script runs but combined... nada.
Initially it was */30 * * * * screen python ~/db_preset.py
(Yes there was new line after)
Then I packed the script into bash script:
#!/bin/sh
if ps -ef | grep -v grep | grep db_preset.py ; then
:
else
date >> ~/cron_log.log
screen python /home/account/db_preset.py
fi
and invoked it with
*/30 * * * * bash ~/scripts.sh
Date gets logged, so it gets to that part but script is never launched
When I try simple cron like */2 * * * * date >> ~/cron_log.log, works just fine
Edit
I tried changing python path to /usr/local/bin/python2.7 /home/account/db_preset.py; touch ~/a_command_has_run
File gets created, so line is run afterall Code is also good when run manually
~a "sh" feature? – glenn jackman Sep 05 '14 at 18:51screen? This is almost certainly unnecessary. – Michael Hampton Sep 06 '14 at 11:53screen. What is the purpose you are trying to accomplish with that? Have you tried it without usingscreenanywhere? – Christopher Cashell Sep 08 '14 at 15:58