Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!dftsrv!iris613.gsfc.nasa.gov!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.sys.sgi Subject: Opening units for stdin and stdout from fortran Message-ID: <4569@dftsrv.gsfc.nasa.gov> Date: 9 Mar 91 20:28:12 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.gsfc.nasa.gov (John H Merritt) Distribution: na Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 19 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."