Telnet Server and BASH.EXE
Chris Wilson
gnuwin32@rochester.rr.com
Fri May 26 07:01:00 GMT 2000
Hello all. I've been using the CYGWIN software for quite some time now, and
just recently moved to Windows 2000.
ÃÂ
I haven't experienced any problems with the software running under W2K,
though I don't really do any CYGWIN development. I basically use it to keep my
Linux-user skills in check when I'm forced to work at a Windows machine all day
long.
ÃÂ
W2K has a nice little telnet server built in, and from the registry you can
manually set the default shell you wish to use.ÃÂ However, when I set it for
bash.exe I have problems.
ÃÂ
I have made the following registry modifications for the telnet
server:
ÃÂ
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TelnetServer\1.0
ÃÂ
DefaultShell = D:\BIN\BASH.EXE --login -i -o ignoreeof
ÃÂ
LoginScript = (value not set)
ÃÂ
Termcap = D:\BIN\TERMCAP
ÃÂ
ÃÂ
The default settings were:
ÃÂ
DefaultShellÃÂ %SystemRoot%\system32\cmd.exe /q /k
ÃÂ
LoginScriptÃÂ ÃÂ %SystemRoot%\system32\login.cmd
ÃÂ
TermcapÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
%SystemRoot%\system32\termcap
ÃÂ
The termcap file from the original entry, I copied into my CYGWIN's BIN
directory before making the registry change.ÃÂ Then I start the TelnetD
service.
ÃÂ
However, when I telnet to the machine I get the following response:
ÃÂ
0ÃÂ [main] bash 1000 hinfo_init: couldn't make stderr distinct from
stdout
And then it just hangs there until I disconnect the telnet
session.
ÃÂ
In the task manager, I can seeÃÂ 2 items start when I telnet to the
machine.ÃÂ TLNTSESS.EXE and BASH.EXE, however I never get my bash prompt,
and like I said previously, the session hangs until I disconnect. The
TLNTSESS.EXE and BASH.EXE do get closed when I disconnect.
ÃÂ
I was wondering if anyone else has tried this, or is there another telnet
server I should be using instead of the built-in Microsoft one?
ÃÂ
Thank you for any help anyone might offer. Have a great day.
-
ÃÂ
Chris Wilson
ÃÂ
More information about the Cygwin
mailing list