Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!think!ames!pasteur!ucbvax!decvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!unido!ecrcvax!johng From: johng@ecrcvax.UUCP (John Gregor) Newsgroups: comp.unix.wizards Subject: Strange behavior from rsh Message-ID: <477@ecrcvax.UUCP> Date: 21 Jan 88 19:45:50 GMT Reply-To: johng@ecrcvax.UUCP (John Gregor) Organization: ECRC, Munich 81, West Germany Lines: 24 Posted: Thu Jan 21 20:45:50 1988 Problem: rsh does strange things with the last socketfull of data sent by a remote process before it blocks for input. Repeat by: (and NO this is not how I ran into the problem...) 1) run /usr/games/chess and know what the output should look like when you press return. (i.e. gives display of board with rank at the bottom) 2) now try rsh /usr/games/chess and bang on return a few times. You will get the board displayed, but you won't get the rank displayed. Now if you hit return enough times (13-14) all of a sudden, you get a screenfull of only ranks. Also, if you ^D out, all the unprinted ranks appear. Now I know the manual says that rsh is no good for interactive programs like vi and rogue, but I don't see how it can get data out of order. I have source, so If you have an explanation/fix I can understand references to line #'s and variable names. Thanks in advance John Gregor johng%ecrcvax.UUCP@germany.csnet /--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|/--\|