- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page