[comp.sys.sgi] Opening units for stdin and stdout from fortran

merritt@iris613.gsfc.nasa.gov (John H Merritt) (03/10/91)

Previously, I wrote:
>Sure,
>   OPEN(11,file='/dev/tty')
>   OPEN(12,file='/dev/tty')

Well, this is not sufficient to answer the question of opening
'stdin' and 'stdout' and attaching them to arbritrary Fortran logical
unit numbers.  Use,

   OPEN(11,file='SYS$OUTPUT')
   OPEN(12,file='SYS$OUTPUT')

Specify, SYS$INPUT, SYS$OUTPUT, and SYS$ERROR for stdin, stdout, and stderr.


              John H. Merritt --> merritt@iris613.gsfc.nasa.gov
              Applied Research Corporation at NASA/GSFC
              "Yesterday I knew nothing, today I know that."