Unix Technical Forum

Re: pkill.c warn when "no such process"

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:19 PM
Paul de Weerd
 
Posts: n/a
Default Re: pkill.c warn when "no such process"

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/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com