What I was suggesting was something like: while [ -e $lock ]; do sleep 1; done
The file is persistent with a fcntl(2) lock, so an existence test won't do. 73 de Jeff