Next: , Previous: GETARG, Up: Intrinsic Procedures


6.80 GET_COMMAND — Get the entire command line

Description:
Retrieve the entire command line that was used to invoke the program.
Standard:
F2003
Class:
Subroutine
Syntax:
CALL GET_COMMAND(CMD)
Arguments:

CMD Shall be of type CHARACTER(*).

Return value:
Stores the entire command line that was used to invoke the program in ARG. If ARG is not large enough, the command will be truncated.
Example:
          PROGRAM test_get_command
            CHARACTER(len=255) :: cmd
            CALL get_command(cmd)
            WRITE (*,*) TRIM(cmd)
          END PROGRAM
     

See also:
GET_COMMAND_ARGUMENT, COMMAND_ARGUMENT_COUNT