Dear all,
I have an issue with crontab. I have following file
#min hour day month dayofweek command
*/2 * * * * sudo python /root/py/dht.py
*/2 * * * * sudo date >> /root/ct.test
and have restarted and enabled the service using
/etc/init.d/cron start
/etc/init.d/cron enable
but no results of the scripts to be seen :-(.
logread shows the following output
Fri Nov 4 20:12:00 2016 cron.info crond[2154]: USER root pid 2378 cmd sudo python /root/py/dht.py
Fri Nov 4 20:12:00 2016 cron.info crond[2154]: USER root pid 2379 cmd sudo date >> /root/ct.test
Fri Nov 4 20:14:00 2016 cron.info crond[2154]: USER root pid 2390 cmd sudo python /root/py/dht.py
Fri Nov 4 20:14:00 2016 cron.info crond[2154]: USER root pid 2391 cmd sudo date >> /root/ct.test
so I would expect that the cron job is actually being executed as defined.
?? But why do I not get the result of the scripts / commands being run ?? If I run them from command prompt I get what I would expect...
I am confused and have not been able to find anything on the web/in the forum on this. Might be that I not scanning for the right term, so any input would be appreciated.
thanks a lot,
GoSch