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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Tony Arnold" To: "cygwin" Subject: RE: telnetd oddities Date: Mon, 3 Jul 2000 23:59:13 +0100 Message-ID: <000001bfe542$4e6976c0$691642c2@mcc.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-reply-to: <3960EBB9.A4CDE0DF@cygnus.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 > -----Original Message----- > From: corinna AT snoopy DOT vinschen DOT de [mailto:corinna AT snoopy DOT vinschen DOT de]On > Behalf Of Corinna Vinschen > Sent: 03 July 2000 20:39 > To: Tony Arnold > Cc: cygwin AT sourceware DOT cygnus DOT com > Subject: Re: telnetd oddities > > > Tony Arnold wrote: > > 1) When I telnet in, then the path is not set correctly. I guess this is > > because the cygwin.bat file, which normally sets the path is not executed by > > the login process. Is the a way to get this to happen, or should I set the > > path through the NT Environment panel? > > You can either set your home path as Windows style path in the > NT user database and after calling `mkpasswd' you will see it in > your /etc/passwd file, or you can set your home path as POSIX path > directly in your /etc/passwd entry. My home path IS set correctly; I was referring to the environment variable PATH, which the cygwin.bat file sets to include /usr/bin and /usr/local/bin. Because when I telnet in, the cygwin.bat file is not executed, then this doesn't happen. I realise I can set this manually via the NT environment variables. > > 2)My .bashrc file is not executed when I telnet in. I've copied it to > > .profile which is executed and I think this is probably the correct thing to > > do (or have .profile source .bashrc). > > Are you sure using bash? Does your /etc/passwd entry have a > /bin/bash entry or a /bin/sh entry? /bin/sh is ash. Good point, I think I've got /bin/sh in the /etc/passwd file, my apologies for the daft question! Although, I think when I changed it to /bin/bash, I had some problems. I'll try it again. > > 3) Telnet'ing in is fine, except if I run a DOS command (e.g., net start), > > then the output is sent to a separate window on the PC screen and not back > > to my telnet session. This is OK if all I want to do is run cygwin commands, > > but life is never that convenient! > > Telnet uses pseudo tty for communication which are implemented > using anonymous pipes. This isn't handled correctly by most native > Windows CLI tools. Is there a work around to this? > Forget the beer. Contribute code instead. ;-) I'll see what I can do! Thanks for the response. Regards, Tony. -- Tony Arnold, Science and Engineering Support Unit, University of Manchester. Tel: +44 (161) 275 6093, Fax: +44 (161) 275 6071, E-mail: tony DOT arnold AT man DOT ac DOT uk, Web: http://www.man.ac.uk/Tony.Arnold -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com