![](https://seccdn.libravatar.org/avatar/016ae51e77754dc8944dd2738ac90e07.jpg?s=120&d=mm&r=g)
On Wed, 5 Jul 2000, Eduardo Carriles 'Mezcalito' wrote: ec> Hi, S.: ec> ec> "S.Toms" wrote: ec> ec> > On Tue, 4 Jul 2000, Greg Thomas wrote: ec> > ec> > [snip] ec> > ec> > I came up with the following which I run through crontab, which will ec> > take care of the lock file for you automatically. ec> > ec> > #!/bin/sh ec> > # ec> > if ! ps cx | grep netscape >/dev/null ; then ec> > if test -L $HOME/.netscape/lock ; then ec> > echo "Deleting expired lock file..." ec> > rm -f $HOME/.netscape/lock ec> > fi ec> > fi ec> ec> Come on S. how do you think the _cron_, wich runs as daemon will resolve $HOME?? ec> ec> Try again and give it a second thought. ec> Works for me :) been using it for quite some time now with no problems. ec> > ec> > ec> > just create a file, I used the name 'dellock' and then call it via ec> > crontab, or, you can create a wrapper program with it that runs the above ec> > then attempts to run netscape immediately after. ec> > ec> > #!/bin/sh ec> > # ec> > if ! ps cx | grep netscape >/dev/null ; then ec> > if test -L $HOME/.netscape/lock ; then ec> > echo "Deleting expired lock file..." ec> > rm -f $HOME/.netscape/lock ec> > else ec> > Netscape -no-about-splash -discussions ec> > fi ec> > fi ec> > ec> > or something to that effect. ec> ec> This one might be better. ec> actually, this one should also have the netscape line before the 'else' so it will fire depening on either outcome. ec> > ec> > ec> > ec> > -- ec> > S.Toms - tomas@primenet.com - www.primenet.com/~tomas ec> > SuSE Linux v6.4+ - Kernel 2.2.16 ec> ec> Saludos, ec> Mezcalito ec> ec> ec> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16 "I thought you were trying to get into shape." "I am. The shape I've selected is a triangle." -- 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