File: kill-netscape

package info (click to toggle)
whereami 0.3.36
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: sh: 1,094; perl: 524; makefile: 24
file content (16 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#echo "SIGHUP"
kill -SIGHUP `ps ax | grep "netscape.*a[t]or" | sed -e ": x;s/  / /;t x" | cut --field=2 --delimiter=' '`
sleep 1
#echo "SIGQUIT"
kill -SIGQUIT `ps ax | grep "netscape.*a[t]or" | sed -e ": x;s/  / /;t x" | cut --field=2 --delimiter=' '`

#sleep 1
#echo "SIGTERM"
#kill -SIGTERM `ps ax | grep "netscape.*a[t]or" | sed -e ": x;s/  / /;t x" | cut --field=2 --delimiter=' '`
#sleep 1
#echo "SIGABRT"
#kill -SIGABRT `ps ax | grep "netscape.*a[t]or" | sed -e ": x;s/  / /;t x" | cut --field=2 --delimiter=' '`
#sleep 1
#echo "SIGKILL"
#kill -SIGKILL `ps ax | grep "netscape.*a[t]or" | sed -e ": x;s/  / /;t x" | cut --field=2 --delimiter=' '`