system(3f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

system(3f)

system(3F)                 Fortran Library Functions                system(3F)



NAME
       system - execute operating system command

SYNOPSIS
       integer function system (string)
       character*(*) string

DESCRIPTION
       The  function  system  gives  string  to your shell as input, as if the
       string had been typed as a command. If the environment  variable  SHELL
       is  found, its value is used as the command interpreter (shell); other‐
       wise, sh(1) is used.


       The current process waits until the command  terminates.  The  returned
       value  is  the exit status of the shell. See wait(2) for an explanation
       of this value.


       The functions sh(3F) and system pass the argument string to a shell for
       execution.  They  convert  the argument string from a Fortran character
       value to a C string value and pass it to the C routine system(3C).


       The routines sh(3F) and system differ in that system flushes  the  For‐
       tran  I/O  buffers  before  calling the C routine system, while sh does
       not. Flushing the buffers can take significant time,  and  so,  if  any
       Fortran  output is irrelevant to the result of the call, the routine sh
       is preferred over the routine system.


       Note that both sh(3F) and system(3F) return integer results.

FILES
       libfsu.a

SEE ALSO
       execve(2), wait(2), sh(3F), system(3C)

BUGS
       string cannot be longer than 1023 characters.



Studio 12.6                     September 2015                      system(3F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3