🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #19072

Re: Netscape?

#19072
From: Didi Niklaus
Date: Mon, 24 Jan 2000 00:00
52 lines
2399 bytes
Seit ich Netscape Version x.y auf SunOS 4, Solaris 2.x auf 
Sparc, wie auch Intel Linux Kernel 2.0.x und 2.2.x verwende,
erlebe ich immer wieder Abst�rze des Netscape. Bei mir heisst 
dieses Programm denn auch eher "NetzCheib" ;-) und ich habe 
so eine Hassliebe-Beziehung zu diesem Unget�m...
Um mit den Unarten schneller zurechtzukommen, habe ich mal 
folgendes csh-Script gebastelt:


#! /usr/bin/csh -fb
#-------------------------------------------------------------------------------
# Description:
#   Script to shutdown Netscape Communicator 4.x "properly" :-)
#-------------------------------------------------------------------------------
# get the name of this script
set pn = `basename $0`


# search for all processes containing 'netsc' in their names
set pid_list = `ps aguwwx | grep "$USER" | grep netsc | grep -v grep | /usr/bin/awk '{printf "%s ", $2}'`

foreach _pid ($pid_list)
        echo -n $pn; echo ": Following process ID found: $_pid   ... killing"
        kill -9 $_pid
end


# remove the lockfile, if present
set lock = `ls $HOME/.netscape | grep 'lock'`

if ($lock != "") then
        echo -n $pn; echo ": Netscape lockfile found, removing $lock"
        rm $HOME/.netscape/lock
endif

echo ""
exit
#-------------------------------------------------------------------------------


Das Script l�uft hier unter Solaris 2.6 auf Sparc, also ev. ist `ps aguwwx` 
nicht plattformunabh�ngig. 

Gruss, Didi
-- 
                            (o o)
-------------------------ooO-(_)-Ooo-------------------------
 From: Didi Niklaus                 _/_/  _/_/_/_/_/ _/_/_/  
 Ascom Transmission AG            _/  _/     _/     _/    _/ 
 Bern, Switzerland              _/_/_/_/    _/     _/_/_/    
 e-mail: nnikld@ascom.ch      _/      _/   _/     _/    _/   
-------------------------------------------------------------
Technical Details
Message-ID: <388C2435.74671E8C@ascom.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86aut1$dah$1@pacifica.access.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f4b73,538af8b5a3a6f402
X-Google-Attributes: gidf4b73,public
From: Didi Niklaus <nnikld@ascom.ch>
Subject: Re: Netscape?
Date: 2000/01/24
Message-ID: <388C2435.74671E8C@ascom.ch>
X-Deja-AN: 576845718
Content-Transfer-Encoding: 8bit
References: <86aut1$dah$1@pacifica.access.ch>
X-Accept-Language: de-CH, en
Content-Type: text/plain; charset=iso-8859-1
Organization: Ascom Transmission AG
Mime-Version: 1.0
Newsgroups: ch.comp.os.linux