I am so glad that was one of the first things some sysadmins taught me when I joined there team never having touched solaris. To this day I have a mental block on doing killall, even under Linux. It seems almost hardwired into my brain to do:
ps waxu | grep [s]sh | awk {'print $2'} | xargs kill

Naturally substituting [s]sh with whatever program you want to kill. The [] bash expansion ensuring that the grep command doesn't sneak into the list of PIDs returned by awk.

On 5/14/2011 6:23 AM, Patrick Cable wrote:
On Fri, May 13, 2011 at 6:54 PM, Tom Perrine <[email protected] <mailto:[email protected]>> wrote:

    Those of you not in #lopsa (shame on you!) are missing a great
    thread...

    Great typos, the best way to destroy a system, unexpected command line
    results...


Linux and Solaris have *very* different ideas about what the killall command does, as I found out when I was an intern... :)

-pc


_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
  http://lopsa.org/

_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to