running 2 shell jobs while waitting for result

Hi,

i'm trying to run from 3rd party program that runs RShell and waits for the job to be finished with a result / return code.

the problem is that my shell job is starting another shell job,
and when the secound job is starting, the first is finished and it returns to the program the first result ( it doesn't wait for the sec shell job ).

Is there a solution for this problem?

thanks
Eyal :slight_smile:

Look at the man page for the wait command.

For an example of this in action, see my post in this thread.

Cheers
ZB