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

spawning system command from fortran

chuck_taylor
Beginner
482 Views
Hi There,
I'm porting some fortran from openVMS to XP and am using the compaq VF environment, and need to issue a system command. On VMS I'd do something like:

call lib$spawn('dir/out=arf.arf')

How can I accomplish this with my XP application?

thank you,
-Chuck Taylor
0 Kudos
1 Reply
TimP
Honored Contributor III
482 Views
CALL SYSTEM() allows you to submit a command to the operating system. That command might start a script, which could specify its own shell in order to avoid confusion between shells. This is an extension supported in a similar way by most vendors' Fortrans.
0 Kudos
Reply