Quantcast
Channel: User Graygood - Stack Overflow
Viewing all articles
Browse latest Browse all 32

flock with crontab is not working properly

$
0
0

I have a crontab job, that looks like this:

*/5 * * * *  /usr/bin/flock -w 0 /home/partners_perfluence_delivery/cron.lock cd /home/partners_perfluence_delivery && /usr/bin/python3 /home/partners_perfluence_delivery/main.py

When I run script main.py manually, everything works like a charm. When I'am trying to use crontab job, lock-file is created, but when I am looking for a job with ps aux | grep main.py I see nothing in the output as well as requests used in main.py are not being made

What am I possibly doing wrong?


Viewing all articles
Browse latest Browse all 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>