![](https://seccdn.libravatar.org/avatar/774f01a7ecce2eabff12c7ab5ba9940d.jpg?s=120&d=mm&r=g)
Hi, S.: "S.Toms" wrote:
On Tue, 4 Jul 2000, Greg Thomas wrote:
[snip]
I came up with the following which I run through crontab, which will take care of the lock file for you automatically.
#!/bin/sh # if ! ps cx | grep netscape >/dev/null ; then if test -L $HOME/.netscape/lock ; then echo "Deleting expired lock file..." rm -f $HOME/.netscape/lock fi fi
Come on S. how do you think the _cron_, wich runs as daemon will resolve $HOME?? Try again and give it a second thought.
just create a file, I used the name 'dellock' and then call it via crontab, or, you can create a wrapper program with it that runs the above then attempts to run netscape immediately after.
#!/bin/sh # if ! ps cx | grep netscape >/dev/null ; then if test -L $HOME/.netscape/lock ; then echo "Deleting expired lock file..." rm -f $HOME/.netscape/lock else Netscape -no-about-splash -discussions fi fi
or something to that effect.
This one might be better.
-- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16
Saludos, Mezcalito -- 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