File: kill-avarice

package info (click to toggle)
avarice 2.10-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,168 kB
  • ctags: 898
  • sloc: cpp: 10,575; ansic: 1,100; sh: 805; makefile: 84
file content (13 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
if [ -f /usr/bin/cygpath.exe ]; then
  # cygwin
  while
    avaricepid=`ps -es | grep '/avarice' | head -1 | cut -c2-7`
    [ "$avaricepid" != "" ]
  do
    kill -9 $avaricepid
  done
else
  # linux, probably some others at least
  killall -q avarice
fi