Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3C08021D.7080109@cportcorp.com> Date: Fri, 30 Nov 2001 17:03:09 -0500 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: rsh does not return errors or at all to stdout (unless buffer is flushed sometimes) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have noticed this problem with rsh in a number of cases. I saw reference to the same/similar problem in the MLA to which Corinna responded that it would be fixed in inetutils-1.3.2-10. I am using inetutils-1.3.2-14. Here are some examples of what seems like odd behavior to me: rsh hostname "ls -l /cygdrive/c/foo" (returns nothing) rsh hostname "cd /cygdrive/c/foo; ls -l" (returns a full or partial directory listing) rsh hostname "cd /cygdrive/c/foo; ls -l; sleep 3" (returns the correct directory listing and sleeps) rsh hostname "ls -l /cygdrive/c/foo; sleep 3" (returns the correct directory listing and sleeps) rsh hostname "ls -l /non/existent/dir; sleep 3" (returns nothing and sleeps) rsh hostname "cat localdir/foo.c" (cats the whole file) rsh hostname "cd /cygdrive/c/foo; cat foo.c" (cats the whole or partial file, possibly dependent on length?) rsh hostname "cat /cygdrive/c/foo.c; sleep 3" (cats the whole file and sleeps) It looks like rsh doesn't flush the buffer before returning. There are times when I try an ls or cat, and I get my prompt back at a random spot in the file/listing. And I can't get any errors to come back, such as "No such file or directory" when I try to ls a non-existent directory. I am guessing that this is an rsh problem, as opposed to rshd. Most of these tests return the correct output when I try to rsh to hostname running cygwin inetd from a solaris machine (except that I still get no errors when a file/dir does not exist). I am not very experienced with gdb, but if anyone can give me pointers to debug further they would be greatly appreciated. TIA, Peter -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/