Re: a try at killall

2003-11-11 Thread Linda W.
If your system is bogged down, the cygwin command overhead could slow things down alot. A single command replacement: /c/Program Files/Sysinternals> psexec PsExec v1.31 - execute processes remotely Copyright (C) 2001-2002 Mark Russinovich www.sysinternals.com PsExec executes a program on a remote s

RE: a try at killall

2003-11-10 Thread Jörg Schaible
Lapo Luchini wrote on Sunday, November 09, 2003 7:06 PM: > Vince Hoffman wrote: >>> Not complete, but usually works for me 0=) >>> >>> $ cat /usr/local/bin/killall >>> #!/bin/sh >>> ps -s | sed -re "/$1$/s/^ +([0-9]+).*$/\1/;t fine;d;:fine" | xargs >>> kill $2 $3 $4 >>> >>> >> Any reason not to

Re: a try at killall

2003-11-09 Thread Lapo Luchini
Vince Hoffman wrote: Not complete, but usually works for me 0=) $ cat /usr/local/bin/killall #!/bin/sh ps -s | sed -re "/$1$/s/^ +([0-9]+).*$/\1/;t fine;d;:fine" | xargs kill $2 $3 $4 Any reason not to just use pkill ? (from procps package) (I found it after writing a similar script fo

Re: a try at killall

2003-11-09 Thread Vince Hoffman
> Not complete, but usually works for me 0=) > > $ cat /usr/local/bin/killall > #!/bin/sh > ps -s | sed -re "/$1$/s/^ +([0-9]+).*$/\1/;t fine;d;:fine" | xargs kill > $2 $3 $4 > Any reason not to just use pkill ? (from procps package) (I found it after writing a similar script for solaris. )