Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Exec() and getting system PID

by hossman (Prior)
on Jan 14, 2002 at 12:09 UTC ( [id://138539]=note: print w/replies, xml ) Need Help??


in reply to Exec() and getting system PID

Is this the program you are using?

If so, are you sure you aren't using the "-f|-fork" option?

My guess is, you should use my $pidline = `root-tail -f ...` but for some reason, root-tail v0.0.10 has the line for printing the PID commented out...

pid = fork (); if (pid != 0) { /*printf ("forking mode: pid=%d\n", pid);*/ exit (0); }
(You may want to mail the devloper and ask what gives.)

However, if you don't use -f, the code you have above seems to work just fine.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-18 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found