in reply to Re^3: launching concurrent processes
in thread launching concurrent processes

Thanks for your time and sorry if I am getting you confused. What I basically need is to make 3 system type calls to run 3 seperate c programs at once from a master perl script and then ammalgumate the ouput from the 3. The reason for having concurrent jobs is to trick openmosix into loadbalance the jobs on a cluster. I was under the impression that perl fork would wait to finish the child process as it would with a system call.

Replies are listed 'Best First'.
Re^5: launching concurrent processes
by polettix (Vicar) on Mar 30, 2005 at 16:20 UTC
    C programs mean you have to use exec(), but this should not be too difficult.

    If you have to collect outputs from the processes, take a look into perldoc perlipc as suggested by RazorbladeBidet to see how you can make your sub-processes talk back to the parent process.

    Flavio

    Don't fool yourself.