On Thu, 2006-03-30 at 08:17, Mike Noyes wrote:
> On Thu, 2006-03-30 at 04:41, Charles Steinkuehler wrote:
> > I mentioned the -l switch to lockfile since I
> > wasn't sure if your removal of the lockfile when trying to grab it
> > failed was unintentional, or an attempt at forcibly grabbing it.
>
> I was trying to clear the lockfile before exiting in case of failure,
> just as your example clears the lockfile on success. I didn't do it
> right though.
Charles,
Would 'trap', as shown in the link below, achieve the results I was
looking for originally?
Writing Robust Bash Shell Scripts: Setting traps
http://www.davidpashley.com/articles/writing-robust-shell-scripts.html
BTW, I'm not using 'set -e' either.
--
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel