This is a discussion on Re: pkill.c warn when "no such process" within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Thu, Feb 21, 2008 at 02:11:53PM +0100, Heinrich Rebehn wrote: > Mark Kettenis wrote: >>> Date: Wed, 20 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Thu, Feb 21, 2008 at 02:11:53PM +0100, Heinrich Rebehn wrote: > Mark Kettenis wrote: >>> Date: Wed, 20 Feb 2008 16:57:23 -0300 >>> From: Gleydson Soares <gsoares@gmail.com> >>> >>> warn on stdout,when not found process >> Since pkill(1) doesn't do that on Solaris and Linux, I don't think we >> want this. > > Would be good opportunity to better than Solaris and Linux :-) > I am really missing this feature too. Interactive programs should always > output an error message in case of an error IMHO. Who says it's an error ? pkill sent the specified signal to all (in this case, none) processes matched. Compare with pgrep .. it doesn't output anything if there's nothing to output. More interesting (I think) would be to have something similar to linux's killall -v option (not to be confused with pkill's -v option). This will give output for every process signalled (and makes your problem obviously non-existant). Paul 'WEiRD' de Weerd -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/ |