Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE: Answer: How do i obtain the PID of a program already running. UPDATE

by cwest (Friar)
on Jun 29, 2000 at 19:25 UTC ( [id://20401]=note: print w/replies, xml ) Need Help??


in reply to Re: How do i obtain the PID of a program already running.
in thread How do i obtain the PID of a program already running.

I can't update my own posts... grrr!

Change perl -pe to perl -ne actually...

ps -C httpd|perl -ne'($_)=/(\d+)/;`kill -9 $_` if $_'
That seems better to me.
--
Casey
  • Comment on RE: Answer: How do i obtain the PID of a program already running. UPDATE
  • Download Code

Replies are listed 'Best First'.
RE: RE: Answer: How do i obtain the PID of a program already running. UPDATE
by merlyn (Sage) on Jun 29, 2000 at 19:39 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found