[NTLUG:Discuss] Flock file hanging around
Neil Aggarwal
neil at JAMMConsulting.com
Mon Jan 28 12:46:34 CST 2013
Hello All:
I wrote a shell script using flock:
#!/bin/bash
(
flock -x 200
# Perform tasks here...
sleep 5
) 200>/var/lock/mylock
After the script exits, the mylock file is still there.
I thought flock is supposed to remove it after the script finishes.
Any ideas?
Thanks,
Neil
--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges
More information about the Discuss
mailing list