![](https://seccdn.libravatar.org/avatar/c1d9c34b36a6e8fe2a1214fb058c6b07.jpg?s=120&d=mm&r=g)
On Wed, 5 Jul 2000, S.Toms wrote:
On Wed, 5 Jul 2000, S.Toms wrote:
st> On Wed, 5 Jul 2000, Eduardo Carriles 'Mezcalito' wrote: st> st> ec> Hi, S.: st> ec> st> ec> "S.Toms" wrote: st> ec> st> ec> > On Tue, 4 Jul 2000, Greg Thomas wrote: st> ec> > st> ec> > [snip] st> ec> > st> ec> > I came up with the following which I run through crontab, which will st> ec> > take care of the lock file for you automatically. st> ec> > st> ec> > #!/bin/sh st> ec> > # st> ec> > if ! ps cx | grep netscape >/dev/null ; then st> ec> > if test -L $HOME/.netscape/lock ; then st> ec> > echo "Deleting expired lock file..." st> ec> > rm -f $HOME/.netscape/lock st> ec> > fi st> ec> > fi st> ec> st> ec> Come on S. how do you think the _cron_, wich runs as daemon will resolve $HOME?? st> ec> st> ec> Try again and give it a second thought. st> ec> st>
Also, I have it entered in my user crontab, which will resolve HOME, LOGNAME and SHELL, it will also resolve MAILTO, see 'man 5 crontab' for available variables in the cron files.
Heres the crontab entry I use if your interested,
0-59/1 * * * * /home/skull/bin/dellock >/dev/null 2>&1
I'm also thinking of rewriting the above routine as a wrapper for any browser I use, once I figure out what types of lock/run files are created by the various others. That way I can use it for lynx, athena, netscape, etc.. with the same results. At which point I'll do away with the crontab option all together.
Yeah, but do you really need it for the other browsers? Why not for every app on your system that uses a lock file? Greg -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq