in reply to Re: Executing a process in the background AND getting its pid
in thread Executing a process in the background AND getting its pid
but I don't need to know the pid of the child. The child spawns a new non-perl process (using exec), and it is the pid of this new process I need.
For example, fork starts a new perl process with pid 31238. In this process, exec is called, starting another process with pid 31239. Now my original parent need to know this pid. However, all that is known by the parent is the pid of its child as returned from fork, that is, 31238.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Executing a process in the background AND getting its pid
by Corion (Patriarch) on Jun 12, 2007 at 07:31 UTC | |
|
Re^3: Executing a process in the background AND getting its pid
by Zaxo (Archbishop) on Jun 12, 2007 at 07:32 UTC | |
|
Re^3: Executing a process in the background AND getting its pid
by naikonta (Curate) on Jun 12, 2007 at 08:22 UTC |