[TriLUG] creating a lock file

JoJo Almario jalmario at intrah.org
Wed Jul 9 15:33:15 EDT 2003


Every now and then someone puts a huge unwieldy file on the file server. 
 My rsync backup runs into it and sometimes just halts on it.  This will 
either cause other rsync scripts to run into it or it just halts there 
trying to copy it over, then I have a bunch of unfinished rsync 
processes runnning in the background.

How do I create a lock file when this happens and how can I get the 
other rsync scripts to not run if there is a lock file present in a 
previous process?

-- 

JoJo Almario
Systems Administrator
Intrahealth International inc.
Office - 919-843-5145
Fax    - 919-966-6816
jalmario at intrahealth.org





More information about the TriLUG mailing list