Path: utzoo!attcan!uunet!cs.utexas.edu!mailrus!usenet.ins.cwru.edu!eagle!news From: uudot@venus.lerc.nasa.gov (Dorothy Carney) Newsgroups: comp.unix.shell Subject: IRIS-to-CRAY rsh Message-ID: <1990Sep25.140522.1628@eagle.lerc.nasa.gov> Date: 25 Sep 90 14:05:22 GMT Reply-To: uudot@venus.lerc.nasa.gov Organization: NASA Lewis Research Center Lines: 32 News-Software: VAX/VMS VNEWS 1.3-4 A user is submitting jobs to our Cray X-MP & Y-MP from an IRIS 4D workstation. He has written simple UNIX shell scripts with rsh commands to execute commands on the Cray. Things get out of desired sequence when the commands for the Cray are FORTRAN. His example: WRITE (6,' PROMPT CHARLIE (0/1)') READ (5,*) IRESP STOP END When run interactively on the Cray, he types the name of his executable and gets: testrsh.e PROMPT CHARLIE (0/1) 1 STOP CP: 0.001s, Wallclock: 3.808s where the 1 is his input in response to the read prompt. Trying the same thing using rsh, he gets: rsh lercymp testrsh.e 1 STOP PROMPT CHARLIE (0/1) CP: 0.001.s, Wallclock: 8.670s After typing the rsh, the terminal seems to hang ... but it is open to read standard input. So, when he types 1 it proceeds, with the prompt appearing later. The user's question: WHY DOESN'T THE PROMPT GET WRITTEN BEFORE THE KEYBOARD OPENS FOR THE READ? E-mail replies will be welcomed. Thanks!