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
Post a Comment