Opening units for stdin and stdout from fortran
John H Merritt
merritt at iris613.gsfc.nasa.gov
Sun Mar 10 06:28:12 AEST 1991
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 at iris613.gsfc.nasa.gov
Applied Research Corporation at NASA/GSFC
"Yesterday I knew nothing, today I know that."
More information about the Comp.sys.sgi
mailing list