Re: [SLUG] Wireless Broadband

From: Eben King (eben1@tampabay.rr.com)
Date: Fri Nov 26 2004 - 16:31:51 EST


On Sat, 13 Nov 2004, Christopher Hotchkiss wrote:

> > Up arrow, edit, enter, until you get it right. I often misread numbers,
> > which is especially bad when I run 'ps' or 'top' and find that 12345 is
> > the process to kill, so I do it, and nothing (obvious) happens so I
> > re-read and its actual PID is 12354. Oops. (What did I kill instead?)
> > So typoes aren't a "newbie" thing necessarily.
> >
> This is an easy fix, 'killall' + the process name. So to kill mplayer,
> type 'killall mplayer.'
> Be careful that you dont have multiple instances running though!

Yeah, but what if I want to go away is "vi .bashrc" but I want to keep "vi
.login"? Also, scripts are listed as "/bin/ksh /export/bin/logmonitor"
(or whatever), which makes them hard to kill by name, but easy (modulo
misreading) by PID. It's easier to find the PID than to check for
uniqueness of the executable's name. And don't use killall in another OS
without checking its man page first; Linux's definition of "killall" is
... odd.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
VIRGO:  All Virgos are extremely friendly and intelligent - except
for you.  Expect a big surprise today when you wind up with your
head impaled upon a stick.  -- Weird Al, _Your Horoscope for Today_

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:27:01 EDT