From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30280 invoked by alias); 22 Aug 2011 18:46:37 -0000 Received: (qmail 30272 invoked by uid 22791); 22 Aug 2011 18:46:36 -0000 X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.joshitech.com (HELO remote.joshitech.com) (64.207.231.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 18:46:23 +0000 Received: from JTISBS8.joshitech.local ([fe80::9c28:12d4:7aa3:fe9f]) by JTISBS8.joshitech.local ([fe80::9c28:12d4:7aa3:fe9f%13]) with mapi; Mon, 22 Aug 2011 13:46:06 -0500 From: Clayton Evans To: "'cygwin@cygwin.com'" Date: Mon, 22 Aug 2011 18:46:00 -0000 Subject: Cygwin shells closing when launched by a telnet server client in Windows 7 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00437.txt.bz2 I am in the process of upgrading to a new machine. This machine is used as= a compute server, where users telnet to the machine, start up a Korn shell= and run compute intensive programs from the Korn shell. The current machi= ne is running Cygwin 1.5 and Windows XP 64 bit. This process has worked fo= r years. The new machine is running Cygwin 1.7 and Windows 7 64 bit. Afte= r telneting to the new machine, mksh.exe appears to start after some pause,= show it's prompt and then exits, returning to the command prompt within th= e telnet session. This behavior makes me think that no input stream is get= ting connected to the shell and the shell exits. Both machines are using Microsoft's Telnet Service. I have tried ash.exe, = bash.exe, dash.exe and sh.exe. All the shell programs show their input pro= mpt and then exit to the command prompt C:\cygwin\bin>mksh.exe -l -i user@hostname ~ $ C:\cygwin\bin> The shell commands work fine, when one is locally on the compute server. = I have tried HyperTerminal, putty.exe and Microsoft's telnet client on the = client machine and they all give the same result. There are no entries in the Windows 7 event log. The Korn shell is working non-interactively when telneted as demonstrated b= elow by having the Korn shell execute a command specific to the Korn shell. C:\cygwin\bin>mksh.exe -c "whence whence" whence C:\cygwin\bin> I have tried setting the Korn shell to be terminal server aware, peflags -t= saware=3Dtrue mksh.exe, with no change in the results. Clayton Evans -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple