Fortran

Guide To Learn

How do I issue a command to the operating system within a Fortran program?

A. The Fortran 2008 standard provides the execute_command_line intrinsic procedure to make system calls. Prior versions have no standard way to make system calls, but many compilers have an extension named “system” or something similar. Please consult the documentation of your compiler. In Fortran 2003, one can call C code, and it is possible to call the operating system from C.

How do I issue a command to the operating system within a Fortran program?

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top