Need help with WAIT

View: New views
5 Messages — Rating Filter:   Alert me  

Need help with WAIT

by srivastava-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop
-nosplash -r evldu
START "" /WAIT tskill matlab

I want task 1 to complete before task 2 is executed. It is not working
out as expected. How can I do it?

Thanx
Kailash

Re: Need help with WAIT

by foxidrive-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 21 Mar 2009 09:53:08 +0100, srivastava <knsri@...> wrote:

>START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu
>START "" /WAIT tskill matlab
>
>I want task 1 to complete before task 2 is executed. It is not working
>out as expected. How can I do it?

Do you get any errors?

Re: Need help with WAIT

by srivastava-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In batchworld@..., foxidrive <foxidrive@...> wrote:

>
> On Sat, 21 Mar 2009 09:53:08 +0100, srivastava <knsri@...> wrote:
>
> >START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu
> >START "" /WAIT tskill matlab
> >
> >I want task 1 to complete before task 2 is executed. It is not working
> >out as expected. How can I do it?
>
> Do you get any errors?

I don't get any output of task 1. Reason is that task 2 is executed and Matlab is killed.

Kailash


Re: Need help with WAIT

by foxidrive-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 21 Mar 2009 09:14:53 -0000, "Kailash Srivastava" <knsri@...>
wrote:

>--- In batchworld@..., foxidrive <foxidrive@...> wrote:
>>
>> On Sat, 21 Mar 2009 09:53:08 +0100, srivastava <knsri@...> wrote:
>>
>> >START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu
>> >START "" /WAIT tskill matlab
>> >
>> >I want task 1 to complete before task 2 is executed. It is not working
>> >out as expected. How can I do it?
>>
>> Do you get any errors?
>
>I don't get any output of task 1. Reason is that task 2 is executed and Matlab is killed.


Try this to see if matlab is indeed returning before it should:

set s=-nodesktop -nosplash -r evldu
START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe %s%
pause
echo done


Re: Need help with WAIT

by srivastava-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your suggestion didn't work. It started Matlab but didn't give any output. However, having got clue from your line, I changed this line as follows:

START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu
pause
echo done
START "" /WAIT tskill matlab

Now if I wait for sufficient long time before pressing any key, Matlab finishes the task. However, if I immediately hit any key, the task is killed before Matlab produces any output.

Thanx
Kailash

--- In batchworld@..., foxidrive <foxidrive@...> wrote:

>
> On Sat, 21 Mar 2009 09:14:53 -0000, "Kailash Srivastava" <knsri@...>
> wrote:
>
> >--- In batchworld@..., foxidrive <foxidrive@> wrote:
> >>
> >> On Sat, 21 Mar 2009 09:53:08 +0100, srivastava <knsri@> wrote:
> >>
> >> >START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu
> >> >START "" /WAIT tskill matlab
> >> >
> >> >I want task 1 to complete before task 2 is executed. It is not working
> >> >out as expected. How can I do it?
> >>
> >> Do you get any errors?
> >
> >I don't get any output of task 1. Reason is that task 2 is executed and Matlab is killed.
>
>
> Try this to see if matlab is indeed returning before it should:
>
> set s=-nodesktop -nosplash -r evldu
> START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe %s%
> pause
> echo done
>