[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Netscape? how to kill?



On Wed, May 30, 2001 at 11:57:48AM +1000, Steve Kieu wrote:
> Hi,
> 
> Yes I am quite tired of Netscape, abd I discovered
> that Netscape in Debian is more likely to stay alive
> even I click File/Exit (Sure I check in Slackware, it
> very rarely happens, don't know why, may be some
> incompatible library libstdc++ or libXpm...); so I
> have to kill it. I just want to type the command
<snip> 
> mtest=`ps -A | grep "navigator-smoti"`
> if [ "$mtest" ] ; then
> killall -9 navigator-smoti #It says no process killed
> here
> fi
> 

Here is a script I put together which I call when Netscape crashes you
can modify it to fit your needs.  You could set up two, one with kill -9
and one with kill -12.  Works for me anyway. 

#!/bin/sh
# mynet - used to remove netscape's lockfile and kill it's pid after a
# freeze.

lock_file=~/.netscape/lock
net_pid=$(ps x | grep netscape | grep -v grep | awk '{print $1}')

if [ -n "$net_pid" ]
    then
	kill -12 "$net_pid"
	echo -e "\nKilled pid $net_pid."
fi

if [ -L "$lock_file" ]
    then
	rm "$lock_file"
	echo -e "\nLockfile  was removed.\n"
fi

communicator-smotif -no-about-splash &
# eof

kent			

-- 
 From seeing and seeing the seeing has become so exhausted
     First line of "The Panther" - R. M. Rilke




Reply to: