delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/22/14:46:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Clayton Evans <CEvans AT joshitech DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Date: Mon, 22 Aug 2011 13:46:05 -0500
Subject: Cygwin shells closing when launched by a telnet server client in Windows 7
Message-ID: <C1D4084E4F215A4F890E70E3675DF6333D1AA9861E@JTISBS8.joshitech.local>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p7MIkfVk027444

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 machine is running Cygwin 1.5 and Windows XP 64 bit.  This process has worked for years.  The new machine is running Cygwin 1.7 and Windows 7 64 bit.  After 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 the telnet session.  This behavior makes me think that no input stream is getting 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 prompt and then exit to the command prompt
C:\cygwin\bin>mksh.exe -l -i
user AT 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 below 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 -tsaware=true 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019