* Offer for killall-script
@ 2002-04-19 16:10 Ralf Habacker
2002-04-19 17:51 ` Chris January
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Habacker @ 2002-04-19 16:10 UTC (permalink / raw)
To: cygwin
In the cygwin-apps I have seen some messages
http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a killall
util, which was going to be part of the cygutils packages but was waiting
because of licensing problems.
For killall I'm using a good working script for about a half year. Perhaps
anyone like this to integrate in the cygutils package. This script allows
killing more than one task, because it does a grep with the first param.
syntax: killall <taskname> | <tasknamepart>
$ cat /bin/killall
ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
Regards
Ralf Habacker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Offer for killall-script
2002-04-19 16:10 Offer for killall-script Ralf Habacker
@ 2002-04-19 17:51 ` Chris January
2002-04-20 7:03 ` Ralf Habacker
0 siblings, 1 reply; 5+ messages in thread
From: Chris January @ 2002-04-19 17:51 UTC (permalink / raw)
To: cygwin
> In the cygwin-apps I have seen some messages
> http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a
killall
> util, which was going to be part of the cygutils packages but was waiting
> because of licensing problems.
>
> For killall I'm using a good working script for about a half year. Perhaps
> anyone like this to integrate in the cygutils package. This script allows
> killing more than one task, because it does a grep with the first param.
>
> syntax: killall <taskname> | <tasknamepart>
>
>
> $ cat /bin/killall
> ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
See Randal's "Usesless Use of kill -9" posts...
http://groups.google.com/groups?q=insubject:useless+insubject:use+insubject:
kill&hl=en&selm=8cpw0y2gb2.fsf_-_%40gadget.cscaper.com&rnum=1
i.e. the signal sent should be configurable :-)
Regards
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Offer for killall-script
2002-04-19 17:51 ` Chris January
@ 2002-04-20 7:03 ` Ralf Habacker
2002-04-21 10:52 ` Ralf Habacker
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Habacker @ 2002-04-20 7:03 UTC (permalink / raw)
To: cygwin
> > In the cygwin-apps I have seen some messages
> > http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a
> killall
> > util, which was going to be part of the cygutils packages but was waiting
> > because of licensing problems.
> >
> > For killall I'm using a good working script for about a half year. Perhaps
> > anyone like this to integrate in the cygutils package. This script allows
> > killing more than one task, because it does a grep with the first param.
> >
> > syntax: killall <taskname> | <tasknamepart>
> >
> >
> > $ cat /bin/killall
> > ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
> See Randal's "Usesless Use of kill -9" posts...
> http://groups.google.com/groups?q=insubject:useless+insubject:use+insubject:
> kill&hl=en&selm=8cpw0y2gb2.fsf_-_%40gadget.cscaper.com&rnum=1
> i.e. the signal sent should be configurable :-)
>
Okay I've read this - Does anyone have a solution for this or should this wheel
have to created again ?
Regards
Ralf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Offer for killall-script
2002-04-20 7:03 ` Ralf Habacker
@ 2002-04-21 10:52 ` Ralf Habacker
2002-04-21 14:04 ` Chris January
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Habacker @ 2002-04-21 10:52 UTC (permalink / raw)
To: cygwin
>
> > > In the cygwin-apps I have seen some messages
> > > http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a
> > killall
> > > util, which was going to be part of the cygutils packages but was waiting
> > > because of licensing problems.
> > >
> > > For killall I'm using a good working script for about a half year. Perhaps
> > > anyone like this to integrate in the cygutils package. This script allows
> > > killing more than one task, because it does a grep with the first param.
> > >
> > > syntax: killall <taskname> | <tasknamepart>
> > >
> > >
> > > $ cat /bin/killall
> > > ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
> > See Randal's "Usesless Use of kill -9" posts...
> > http://groups.google.com/groups?q=insubject:useless+insubject:use+insubject:
> > kill&hl=en&selm=8cpw0y2gb2.fsf_-_%40gadget.cscaper.com&rnum=1
> > i.e. the signal sent should be configurable :-)
> >
> Okay I've read this - Does anyone have a solution for this or should
> this wheel
> have to created again ?
It seems not to be, so this script do it.
$ cat /bin/killall
ps -ea | grep $1 | awk '$1 ~ /^[^SI]/ { system("kill -15 " $1); }'
sleep 1
ps -ea | grep $1 | awk '$1 ~ /^[^SI]/ { system("kill -2 " $1); }'
sleep 1
ps -ea | grep $1 | awk '$1 ~ /^[^SI]/ { system("kill -1 " $1); }'
Regards
Ralf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Offer for killall-script
2002-04-21 10:52 ` Ralf Habacker
@ 2002-04-21 14:04 ` Chris January
0 siblings, 0 replies; 5+ messages in thread
From: Chris January @ 2002-04-21 14:04 UTC (permalink / raw)
To: cygwin
> > > > In the cygwin-apps I have seen some messages
> > > > http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about
a
> > > killall
> > > > util, which was going to be part of the cygutils packages but was
waiting
> > > > because of licensing problems.
> > > >
> > > > For killall I'm using a good working script for about a half year.
Perhaps
> > > > anyone like this to integrate in the cygutils package. This script
allows
> > > > killing more than one task, because it does a grep with the first
param.
> > > >
> > > > syntax: killall <taskname> | <tasknamepart>
> > > >
> > > >
> > > > $ cat /bin/killall
> > > > ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
> > > See Randal's "Usesless Use of kill -9" posts...
> > >
http://groups.google.com/groups?q=insubject:useless+insubject:use+insubject:
> > > kill&hl=en&selm=8cpw0y2gb2.fsf_-_%40gadget.cscaper.com&rnum=1
> > > i.e. the signal sent should be configurable :-)
> > >
> > Okay I've read this - Does anyone have a solution for this or should
> > this wheel
> > have to created again ?
At such time as the /proc patch is accepted into the Cygwin DLL, it should
be possible to coerce killall from psmisc to compile and run.
Regards
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-21 20:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-19 16:10 Offer for killall-script Ralf Habacker
2002-04-19 17:51 ` Chris January
2002-04-20 7:03 ` Ralf Habacker
2002-04-21 10:52 ` Ralf Habacker
2002-04-21 14:04 ` Chris January
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).