http://qs1969.pair.com?node_id=768532


in reply to Re^2: Calling External Program
in thread Calling External Program

I have done something similar - though not exactly the same - with Win32::Process::Create. That gives you a $ProcessObj->Wait($timeout) method. However, from your description, I suspect that this will return immediately.

If Wait() does return immediately, you should be able to find an entry in the tasklist for what is running and check that periodically for the programs completion. Without being more familiar with MATLAB, I can't be any more specific.

Replies are listed 'Best First'.
Re^4: Calling External Program
by Anonymous Monk on Jun 09, 2009 at 13:19 UTC
    Thanks for the feedback, but I found a simpler solution. After convincing my colleagues that the order the programs are called in doesn't really matter, simply calling MATLAB last solves the problem.