Running is therapy

a blog about running, cats and Linux.
  • Home
  • Current Schedule
  • Personal Records
  • Upcoming Races

So wrong

Published by Nathan Powell on November 16, 2005 10:59 pm under computers

There have to be much better ways to do this :)

netstat –numeric-ports -lp | grep :80 | awk -F” ” ‘{print $7}’ | awk -F\/ ‘{print $2}’ | sudo xargs killall -9 && sudo /etc/init.d/apache2 start

7 Comments so far

  1. Josiah Ritchie on November 17th, 2005

    wow, I missed something. When’d you switch over to wordpress? This is a great theme. Been missing you in #cplug.

  2. eric on November 17th, 2005

    Yeah, I’ve been missing you in #cplug too. And #hpm is depleted by 1/3 :-)

    For the above, how about:

    perl -e ‘”/etc/init.d/apache start” if not `/etc/init.d/apache status –quiet`”

    Or the bash equivalant, whatever that is :-)
    -Eric

  3. fuzzie on November 17th, 2005

    Miss you at #cplug.
    Want a futon?

  4. Nunya Business on November 17th, 2005

    What’s #cplug? A channel for ranting and raving lunatics?

  5. Administrator on November 17th, 2005

    Hello all. Thanks.

    Josiah, I switched a short time ago. It works pretty well I must say.

    Eric, yeah the story behind that one liner is long and varied, it started with needing to sniff a port and then killing that PID…after that start apache, wheather it was apache you killed or not. So I came up with that. :)

    Fuzzie, no.

  6. Josiah Ritchie on November 21st, 2005

    I’m glad you like WP. Now we have to get Eric to switch.

Posting your comment.

  • Search

  • Archives

    • August 2008 (7)
    • July 2008 (11)
    • June 2008 (14)
    • May 2008 (15)
    • April 2008 (10)
    • March 2008 (16)
    • February 2008 (17)
    • January 2008 (37)
    • December 2007 (21)
    • November 2007 (30)
    • October 2007 (29)
    • September 2007 (22)
    • August 2007 (30)
    • July 2007 (49)
    • June 2007 (32)
    • May 2007 (29)
    • April 2007 (38)
    • March 2007 (26)
    • February 2007 (25)
    • January 2007 (23)
    • December 2006 (10)
    • November 2006 (12)
    • October 2006 (9)
    • September 2006 (9)
    • August 2006 (5)
    • July 2006 (13)
    • June 2006 (9)
    • May 2006 (8)
    • April 2006 (11)
    • March 2006 (12)
    • February 2006 (12)
    • January 2006 (13)
    • December 2005 (15)
    • November 2005 (19)
    • October 2005 (8)
  • Categories

    • blather (60)
    • books (10)
    • computers (177)
    • cooking (1)
    • economics (3)
    • emacs (3)
    • football (1)
    • gaming (1)
    • hiking (5)
    • housekeeping (5)
    • lifehacking (7)
    • music (3)
    • paddling (2)
    • personal (1)
    • politics (21)
    • programming (67)
    • running (228)
    • smoking (40)
    • sysadmin (9)
    • tlc (10)
    • Uncategorized (1)
  • Pages

    • Current Schedule
    • Personal Records
    • Upcoming Races

Copyright © 2008 Running is therapy
WordPress Theme based on Light Theme