Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-19 Thread Simon Reap
Andy Smith wrote:
 Oh yes, definitely.  For example I find myself doing multiple file
 renames in a shell script even though almost every system comes with
 a rename script/command these days.
   

That's the important bit: *almost* every system has these commands and 
fixes.  It's good to know the basic way to do things when you come 
across a system which doesn't.

Simon

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Victor Churchill
2009/5/17 hants...@googlemail.com
   ps -A | grep ktorrent followed by
 kill seems to have cured the problem.

I have had to do such things that many times that I came up with a one liner :

 ps -eafw | grep morituri | awk '{print $2}' |  xargs kill

Disclaimers:
Different people have different favourite 'ps' invocations embedded in
their finger memories. The above is mine.
A purist would say there should be a 'grep -v grep |' in the pipeline
as well. A /real/ purist would say there shouldn't and that there
should be one grep with a regex.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Andy Smith
Hi Victor,

On Mon, May 18, 2009 at 10:35:43AM +0100, Victor Churchill wrote:
 I have had to do such things that many times that I came up with a one liner :
 
  ps -eafw | grep morituri | awk '{print $2}' |  xargs kill
 
 Disclaimers:
 Different people have different favourite 'ps' invocations embedded in
 their finger memories. The above is mine.
 A purist would say there should be a 'grep -v grep |' in the pipeline
 as well. A /real/ purist would say there shouldn't and that there
 should be one grep with a regex.

Someone else would use pkill instead of the lot of it. ;)

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting

If you only ever read one book in your life, I highly recommend you keep your
 mouth shut. -- The League Against Tedium


signature.asc
Description: Digital signature
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Daniel Pope
Andy Smith wrote:
 Someone else would use pkill instead of the lot of it. ;)

I use killall. What's the difference?

Dan

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Victor Churchill
2009/5/18 Daniel Pope ma...@mauveweb.co.uk:
 Andy Smith wrote:
 Someone else would use pkill instead of the lot of it. ;)

 I use killall. What's the difference?


More than one way to do it I suppose. Just looking over the man page
there looks like some overlap and some distinct features on each side.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Steve Kemp
On Mon May 18, 2009 at 19:08:07 +0100, Daniel Pope wrote:

  Someone else would use pkill instead of the lot of it. ;)

 I use killall. What's the difference?

  On Solaris pkill does what you want, if it is available.

  On Solaris killall kills *all* processes.

  That's the kind of mistake you only make once ..

Steve
--
http://www.steve.org.uk/

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Daniel Pope
Steve Kemp wrote:
That's the kind of mistake you only make once ..

So that's why the manpage says Be warned that typing killall _name_ may 
not have the desired effect on non-Linux systems, especially when done 
by a privileged user.!

Dan


-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-18 Thread Andy Smith
Hello,

On Mon, May 18, 2009 at 07:34:30PM +0100, Victor Churchill wrote:
 Semi seriously though: I do notice how as new releases come around, if
 one has come from a previous release there is probably a tendency to
 stick with the familiar way even if there are new easier ways.

Oh yes, definitely.  For example I find myself doing multiple file
renames in a shell script even though almost every system comes with
a rename script/command these days.

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting

Ging i stopped taking my medication long ago. the ironey is it was for
  social anxioty disorder and now i daren't go back to the doctor to get
  another perscription


signature.asc
Description: Digital signature
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] constantly flickering LEDs on router: Solved - amid blushes

2009-05-17 Thread hantslug
Found this had gone from a dummy address and that is why it hadn't arrived - 
sorry, Paul. 

On Sunday 17 May 2009 20:14:31 you wrote:
 Please tell us a bit about the machine. OS and version. What software you
 have running.

 Do you have bittorrent?

 -

 Sorry - I ought to have said those.  They are not even in the real email
 I sent after my slip.

 Answers: I have ktorrent.
 Konqueror, Iceweasel, KMail were running.
 OS Lenny.
 Sorry about the broken threading.  I am having to juggle between GMail and
 KMail in order to get the right sender's address on here.

 Will now reboot and check again for KTorrent via ps.  Thanks for reminding
 me.

Paul - you are a genius and I am an idiot.  ps -A | grep ktorrent followed by 
kill seems to have cured the problem.

Very grateful thanks,
Lisi


-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--