ishell(3F)
ISHELL - Executes a shell command
Showing IRIX 6.5.30 (default release). Last changed in IRIX 6.5.19.
NAME ISHELL - Executes a shell command SYNOPSIS ISTAT = ISHELL(command) DESCRIPTION This routine is in libffio.so which is linked by default when compiling programs with the MIPSpro 7 Fortran 90 compiler or when compiling programs with the -craylibs option to the MIPSpro F77 compiler. ISHELL executes a shell command. ISHELL has the following argument: command Command to be given to the shell of type character. ISHELL passes command to the shell sh(1) as input, as if command were entered at a terminal. RETURN VALUES ISHELL returns the termination status filled in by the waitpid(2) system call, which is used to wait for the child shell process. Unless the command was interrupted by a signal, its exit status is contained in bits 8 through 15 (bit 0 being the least significant bit) of the value returned by ISHELL (see the waitpid(2) man page for more information). However, if any errors occur in running the shell or collecting its exit status, ISHELL returns a negative number; this number is the negative value of errno corresponding to the error. EXAMPLES WRITE(TPMNT,500) DTV, XDT, VOL, XVOL, DSN, PDN, MBSV CALL ISHELL(TPMNT) 500 FORMAT('tpmnt -l sl -F U -T -g ',a6,' -x ',a6, + '-v ',a6,'=',a6,' -P ',a8,' -f ',a, ' -b ',a) SEE ALSO pshell(1), system(3C)