Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Unix process number on a mac...

by brian_d_foy (Abbot)
on Mar 15, 2005 at 05:32 UTC ( #439549=note: print w/replies, xml ) Need Help??

in reply to Unix process number on a mac...

What are you trying to do? If you just want to check if the process is still running, use kill() with the 0 signal. It tells you if the process is still running. If it isn't running, just restart it.

kill 0, $pid;
brian d foy <>

Replies are listed 'Best First'.
Re^2: Unix process number on a mac...
by zakzebrowski (Curate) on Mar 16, 2005 at 02:50 UTC
    brian_d_foy++ :)
    This works on the mac. I didn't know about the 0 kill signal. (I knew 9 to 'really' kill a process but I will google the rest...) Thanks!

    Zak - the office

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-01-21 20:40 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (59 votes). Check out past polls.