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
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
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
> 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. )
4 matches
Mail list logo