Hi all,

Just wondering if it's possible to programatically get the PID of an app that has just been executed
using one of the execve(2) family of functions?

For context, I'm writing an app that will execute an application specified on the command line,
retrieve it's process id, and monitor various parameters over time, producing a graph.

While I am writing this on Linux, it has to be portable so GNU/BSD extensions to ANSI C aren't
any use to me unfortunately.

Any ideas at all would be appreciated, I have the feeling I'm missing something simple :-/

TIA,

Ruairi