File: kill-avarice

package info (click to toggle)
avarice 2.13%2Bsvn347-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,880 kB
  • sloc: cpp: 22,872; sh: 4,129; ansic: 1,134; makefile: 92
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