[NTLUG:Discuss] kill command

Ralph Green sfreader at sbcglobal.net
Sat Jun 13 02:30:21 CDT 2009


Howdy,
  I tried the following command and it does not quite work, and I don't
see why.  Any suggestions?

ps -A -o pid -o cmd | grep "update-notifier" | cut -c1-5 | kill

 If I do it without that last bit, I get the pid of the process I want
to kill.  How do I need to change this to kill that process?  I know it
will also get the pid of the grep command and kill that process, but I
can't see that that would hurt anything.
Good day,
Ralph





More information about the Discuss mailing list