On Mon, Dec 18, 2006 at 11:15:46AM -0500, William Dunn wrote: > if [ -f /root/rsync-scripts/centos.lockfile ] [...] > touch /root/rsync-scripts/centos.lockfile I suggest using mkdir for lockfiles -- if the directory already exists, it'll fail, so you can do the test and create as essential an atomic operation, so you don't have a race. -- Matthew Miller mattdm at mattdm.org <http://mattdm.org/> Boston University Linux ------> <http://linux.bu.edu/>