The following program:
--
#!/bin/sh
(
flock -n 200
# ... commands executed under lock ...
) 200>/var/lock/mylockfile
--
as in 'man flock' does not work with dash:
/home/markus/bin/test_lock: 6: Syntax error: word unexpected
The following program:
--
#!/bin/sh
(
flock -n 200
# ... commands executed under lock ...
) 200>/var/lock/mylockfile
--
as in 'man flock' does not work with dash:
/home/markus/bin/test_lock: 6: Syntax error: word unexpected