[vox-tech] simple stupid lockfile example?

Bill Kendrick vox-tech@lists.lugod.org
Tue, 18 Mar 2003 00:58:01 -0800


ok, i hate it when i run tin, and then forget i have it in the background
somewhere and run it again.

i want to replace 'tin' with a shell script or alias that will
test for a lock file (and call me a moron if it exists), make a lock file,
run tin, and then delete the lock file...

anyone got a good quick example they can cut and paste?
(i could figure it all out in bash myself, but figured there might be
caveats due to job control stuff, like ^Z suspension)

thx!

-- 
bill@newbreedsoftware.com                                            Hire me!
http://newbreedsoftware.com/bill/    http://newbreedsoftware.com/bill/resume/