On Tue, 2006-02-14 at 15:21, Charles Steinkuehler wrote: > > I need to fix it so it's robust enough for the new SF requirements. > > Locking has me a bit confused, and I'll need to read how to add that to > > daily.sh. I'll attempt to address these issues when I work on our > > documentation build process. > > If the lockfile utility is available on the SF servers (highly likely, > but I didn't check),
Charles, The SF project shell server has lockfile installed. I verified this with which. > it's pretty easy: > > <code> > #!/bin/sh > > LOCKFILE=leafcron.lock > > # Get the lockfile if we can, don't retry if we can't > lockfile -r 0 $LOCKFILE > > # Test to see if we have the lockfile > if [ "$?" -ne 0 ] ; then > echo "Couldn't get lockfile!" > exit 1 > fi > > echo "Got lock file: $LOCKFILE" > # Do more stuff here... > > # Done with everything...remove lockfile > rm -f $LOCKFILE > </code> Thanks for the shell code snippet. I appreciate it, and I'll try to incorporate in in daily.sh soon. :-) > Holler if you need help with the above, or any other scripting chores. Will do. KP, >From your earlier comments, I guess I should work on cron and daily.sh before installing mediawiki? -- Mike Noyes <mhnoyes at users.sourceforge.net> http://sourceforge.net/users/mhnoyes/ SF.net Projects: leaf, phpwebsite, phpwebsite-comm, sitedocs ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel