in reply to waiting for process to finish

Have you looked at wait? If you have the PID of the child process, you can wait for it to finish.

Replies are listed 'Best First'.
Re^2: waiting for process to finish
by ovedpo15 (Pilgrim) on Jul 16, 2018 at 12:26 UTC
    The process is running on a different machine, so I can't use the wait operation.

      Maybe you can tell us a bit more about the framework you're using to launch processes at the remote end?

      If you don't want to poll, and can't use wait, maybe you can have the process at the remote end (or a wrapper around it) send you a message when it has finished?

      A reply falls below the community's threshold of quality. You may see it by logging in.