Sample Header Ad - 728x90

flock command script fail on xunbuntu 16.04 - cant understad why

0 votes
1 answer
307 views
#!/bin/bash ( flock -n 200 || exit 1 # commands executed under lock sleep 3 echo "TEST" ) 200 > /home/nis/Scripts/lock.txt Running this scrip gets me this error: lock.sh: 7: lock.sh: Syntax error: word unexpected I don't get why this happens. It works on my QNAP (Busybox)
Asked by Nis (1 rep)
Jan 14, 2017, 04:42 PM
Last activity: May 9, 2019, 09:35 PM