Manual Reference Pages - system_cmd (3m_system)
NAME
system_cmd(3f) - [M_system:SYSTEM_COMMAND] call execute_command_line(3f)
(LICENSE:PD)
CONTENTS
Synopsis
Description
Options
Return Value
Examples
SYNOPSIS
function system_cmd(command)
character(len=*),intent(in) :: command
logical :: system_cmd
DESCRIPTION
Is a function that calls execute_command_line(3f).
system_cmd(3f) executes a string as a system command after
trimming the string.
OPTIONS
|
command |
| |
string specifying system command to execute
|
|
RETURN VALUE
Upon successful completion .TRUE. is returned. Otherwise,
[char46]FALSE. is returned.
If an error occurs an error message is written to stdout.
EXAMPLES
Sample program
program demo_system_cmd
use M_system, only : system_cmd
implicit none
logical,allocatable :: status(:)
status=system_cmd([character(len=1024) :: date,pwd,logname])
write(*,*)status=,status
end program demo_system_cmd
| Nemo Release 3.1 | system_cmd (3m_system) | March 07, 2025 |
Generated by manServer 1.08 from 0b513c19-a7ab-4844-9f53-dee543e41371 using man macros.