Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

EXECUTE_COMMAND_LINE

Scott_L_
New Contributor I
570 Views

 

The fortran 2008 standard and ifort 15 have the EXECUTE_COMMAND_LINE intrinsic subroutine to run a system command.  Also it has an option to run the system command asynchronously.   There is no mention in the documentation about any way to determine from your application which called EXECUTE_COMMAND_LINE  to know when the asynchronous command has completed, or to be able to terminate it when you no longer want to have it continue running.    I just wondered if there was some undocumented method for doing either of these actions.   It would be something we'd find helpful.

 

thanks,

Scott

 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
570 Views

Nope - the language doesn't provide for that. If you need to know when an asynchronous command has completed, or to kill off the spawned command, you'll have to roll this yourself, and this will be platform-dependent. That's the thing about features in the standard - while they can be very useful, they don't always address 100% of the desired functionality.

0 Kudos
Reply