File: notscape.bash.txt

package info (click to toggle)
lg-issue65 1-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,776 kB
  • ctags: 230
  • sloc: sh: 171; perl: 133; makefile: 36
file content (13 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash
# notscape - cleans up the garbage left by a Netscape crash

a=`ps ax | grep "[c]ommunicator" | awk '{print $1}'`
b=`ps ax | grep "[n]etscape"     | awk '{print $1}'`
c=`ps ax | grep "[n]avigator"    | awk '{print $1}'`

[ -n "$a" ] && { echo "Kill Communicator..."; kill -9 $a 2>/dev/null; }
[ -n "$b" ] && { echo "Kill Netscape..."    ; kill -9 $b 2>/dev/null; }
[ -n "$c" ] && { echo "Kill Navigator..."   ; kill -9 $c 2>/dev/null; }

[ -L ~/.netscape/lock ] && { echo "Lock is gone."; rm ~/.netscape/lock; }