- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry if this is rather elementary...
Could someone tell me which Fortran command I need to call a system command (i.e. to run a command as if it was entered on the linux command line)? In other versions of Fortran compiler, I have seen the "system" function but I can't see anything similar in the Intel Fortran language description manual.
Thanks very much.
Tim Camp
Could someone tell me which Fortran command I need to call a system command (i.e. to run a command as if it was entered on the linux command line)? In other versions of Fortran compiler, I have seen the "system" function but I can't see anything similar in the Intel Fortran language description manual.
Thanks very much.
Tim Camp
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both the system() and systemqq() functions are written up in lib_for.pdf, and have interface blocks provided by USE IFPORT. They differ only in that system() returns integer status codes, while systemqq() returns logical.
Message Edited by tim18 on 09-07-2005 06:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks Tim.
For your info, I checked in the latest version of for_lang.pdf (the ver 9.x copy from http://www.intel.com/support/performancetools/fortran/linux/sb/cs-007823.htm) but couldn't find these two functions described(?).
I guess the argument is simply a string giving the operating system command.
Tim Camp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Because these are not intrinsic functions, implemented by the compiler, they are not in the Language Reference. Look instead in the Libraries manual.
Yes, the argument is the command string you want executed. They are functions returning an integer status. You should add a:
use ifport
in the program unit that uses them.
Yes, the argument is the command string you want executed. They are functions returning an integer status. You should add a:
use ifport
in the program unit that uses them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks very much.
Tim

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