Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Bummer... :-)

    Random thoughts, which may or may not be helpful:

    • Skip the "grep -v grep" step:

      ps afxww |grep 'm[y]_proc_name'|tail --lines=+2|awk '{print$1}'|xargs kill -HUP

    • Replace the whole line with killall (if available):

      killall -HUP 'm[y]_proc_name'

    • Don't wrap commands in doublequotes :-)
    --


    --
    DO NOT LEAVE IT IS NOT REAL.

    • by josephgrossberg (5151) on 2004.07.07 10:46 (#32222)
      Even better, change: ps afxww |grep 'm[y]_proc_name'|tail --lines=+2|awk '{print$1}'|xargs kill -HUP to ps afxww |grep 'm[y]_proc_name'|tail --lines=+2|awk '{print$1}'|less the first time you run it, and make sure those are the results you expected!