Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launching a program

Status
Not open for further replies.

aJCU

Programmer
May 4, 2007
5
GB
Hallo everybody,

I want to launch a program and at the moment I`m using this command:

Call system('C:\abaqus\6.6-1\exec\abq661.exe job="'str'"')

but the problem is that while the simulation is still running my fortran program go to the following line and read the results file of the simulation that still don`t exist.

Does exist any way to enter DOS environment so that my fortran program wait the simulation end and then read the following line?

Thanks,
aJCU
 
Yes there is,

CALL SYSTEM('START /W C:\abaqus\6.6-1\exec\abq661.exe job="'str'"')

Just make sure that abq661.exe never ends up in a never ending loop, because that happened when I used this trick in the past. If abq661.exe never finishes you have to include some time out. DOS is not able to do that (at least I didn't find it)

(It could also be "START /w" instead, just try)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top