Flock error - bad number -


im trying create cronjob prevent duplicate cronjobs running:

          • flock -n /mydir/control.txt -c bash /mydir/script.sh

but not working.

when try command in console:

flock -n /mydir/control.txt

i error:

flock: bad number: /mydir/control.txt

i browsing web find answer problems didnt find anything. cause error? how can fix this?

btw use debian 7 64bit


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -