This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

run execCmdFile

I like to run 20 cases overnight using "execCmdFile" scripting commads. Basically, I create a file "myCmds" that contains a sequence commands like that

load data1

restart

run

save output1

load data2

restart

run

save output2

,,,,,,,,,,,,,,,,,,,,,,,

I enter "execCmdFile myCmds" at js:> command line.

The problem I got is DSP has not completed first "run" (it takes 10-15sec to complete), the script is sending "save ouptut1" command, and I got wrong output. Sometimes, I saw "time out" error msg on script console

Thanks,

 

Jay

 

  • Hi Jay,

    'run' is an asynchronous command, meaning that it will kick of the 'run' and then return. If you want the make sure the 'run' will run the target until completion before the rest of your script continues, you should use a 'runSync'.

    Thanks

    ki