#StackBounty: #linux #debian #cron flock command in root cron won't execute

Bounty: 50

I’ve got the following code in my root crontab on my Debian

* * * * * flock -xn /absolute/path/to/run.lock -c cd /absolute/parth/to/project && ./run >> run.log

But I see no run.log or run.lock files where I specify them. In fact, there’s no evidence the script was executed.

Running ps aux | grep run only yields that grep call.

How do I run the run script using flock in the root crontab?

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.