Re: Small pgrep/pkill enhancement

2011-06-12 Thread Otto Moerbeek
On Sat, Jun 11, 2011 at 07:33:51PM -0700, Philip Guenther wrote:

 On Sat, Jun 11, 2011 at 7:19 PM, Ted Unangst ted.unan...@gmail.com wrote:
  Funny enough, when pkill was first added I added an option to confirm
  each kill.  Guess what letter it used?  That's right, -i, modeled
  after rm.
 
 Confirm each kill?  Ah, that's the option to follow up each kill
 with a SIGKILL between the fds, right?
 
 
 Philip Guenther

Here with the process police, we like to kill by number.

-Otto

PS: if you don't get the reference you could listen to the guest
performance of Sting performing Murder by Numbers with Frank Zappa's
band on the Broadway the Hard Way album. 

http://www.youtube.com/watch?v=ToReX88lzkk

That'll end this sunday's diversion.



Re: Small pgrep/pkill enhancement

2011-06-12 Thread Janne Johansson
2011/6/12 Philip Guenther guent...@gmail.com

 On Sat, Jun 11, 2011 at 7:19 PM, Ted Unangst ted.unan...@gmail.com
 wrote:
  Funny enough, when pkill was first added I added an option to confirm
  each kill.  Guess what letter it used?  That's right, -i, modeled
  after rm.

 Confirm each kill?  Ah, that's the option to follow up each kill
 with a SIGKILL between the fds, right?


More like sending in a team and streaming it live to the president-style
confirm each kill. =)

-- 
 To our sweethearts and wives.  May they never meet. -- 19th century toast



Re: En/disabling power button shutdown

2011-06-12 Thread Stuart Henderson
On 2011/06/11 21:06, gilbert.fernan...@orange.fr wrote:
We have to add one, so move the others
 on one side, and by moving one we accidentally pressed a
 power button and the machine did shut down... Without
 almost a hundred machines depending on it and people working
 on those hundred machines that really did not like what
 happened.

whether or not the power button is disabled, there are plenty of things
which can go wrong with such a move. do it the right way, especially for
a server relied on by 100+ users...



Re: En/disabling power button shutdown

2011-06-12 Thread gilbert . fernandes
On Sun, Jun 12, 2011 at 10:38:33AM +0100, Stuart Henderson wrote:

 whether or not the power button is disabled, there are plenty of things
 which can go wrong with such a move. do it the right way, especially for
 a server relied on by 100+ users...

True :-)

Well I guess that's a mistake I won't ever do again.

-- 
Ripley



Re: En/disabling power button shutdown

2011-06-12 Thread Kevin Chadwick
On Sat, 11 Jun 2011 21:14:02 +0200
gilbert.fernan...@orange.fr wrote:

 They had to put pieces of paper in front of the power buttons
 because when you move a machine sometimes your finger presses
 the power button.

A matchbox with a hole in it acts like a reset button protection.



Re: Small pgrep/pkill enhancement

2011-06-12 Thread Kevin Chadwick
On Sun, 12 Jun 2011 00:15:58 +0200
Benny Lofgren wrote:

 Me personally, I'm scared as hell using pkill at all. I've never been
 concerned with not killing *enough*, it's almost always that I'm afraid
 I'm killing too *much*...

Most of the time, the regex matching makes it usable. I'd rather see
that expanded than case sensitivity.



Re: Small pgrep/pkill enhancement

2011-06-12 Thread Chris Bennett
On Sun, Jun 12, 2011 at 04:31:32PM +, Kevin Chadwick wrote:
 On Sun, 12 Jun 2011 00:15:58 +0200
 Benny Lofgren wrote:
 
  Me personally, I'm scared as hell using pkill at all. I've never been
  concerned with not killing *enough*, it's almost always that I'm afraid
  I'm killing too *much*...
 
 Most of the time, the regex matching makes it usable. I'd rather see
 that expanded than case sensitivity.
 

I would like a verbose option where I can be notified if nothing matched.
I far prefer to use pkill over kill.
For example, killing off many gnashes!
But I always want success when I use it.
I dislike having to verify afterward manually

my 2 cents.



Re: Small pgrep/pkill enhancement

2011-06-12 Thread Kevin Chadwick
On Sun, 12 Jun 2011 10:41:16 -0500
Chris Bennett wrote:

 I would like a verbose option where I can be notified if nothing matched.

/usr/bin/pgrep asxbabsjkcnjklcneo || /bin/echo Nout matched



Re: Small pgrep/pkill enhancement

2011-06-12 Thread Kevin Chadwick
On Sun, 12 Jun 2011 16:31:32 +
Kevin Chadwick wrote:

 On Sun, 12 Jun 2011 00:15:58 +0200
 Benny Lofgren wrote:
 
  Me personally, I'm scared as hell using pkill at all. I've never been
  concerned with not killing *enough*, it's almost always that I'm afraid
  I'm killing too *much*...
 
 Most of the time, the regex matching makes it usable. I'd rather see
 that expanded than case sensitivity.
 

Of course you can use ps -auxww | egrep | cut etc. etc. when needed,
instead of pgrep but that sort of defies the point of pgrep.



Re: wildcards in changelist(5)

2011-06-12 Thread Michael Knudsen
On Sat, Jun 11, 2011 at 07:55:25PM +0200, Ingo Schwarze wrote:
 some time ago, mk@ and matthew@ discovered a regression in security(8):
 Our rewrite killed changelist(5) wildcard support.
 
 I think we should put it back, the changelist(5) manual explicitly
 documents the feature.

I've tested it for the past two days (well, nights) without noticing
anything wrong.

My perl-fu is very weak but I don't see any reason to not move forward
with this.

-m.

-- 
moid no, it's a recursive acronym. It means gcc can't compile