delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/03/15:39:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3960EBB9.A4CDE0DF@cygnus.com>
Date: Mon, 03 Jul 2000 21:38:33 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: Tony Arnold <tony DOT arnold AT mcc DOT ac DOT uk>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: telnetd oddities
References: <NBBBJDHEGLOMBGDMCLNEIEHFDIAA DOT tony DOT arnold AT mcc DOT ac DOT uk>

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.

For some reason login shells expect to have the cwd already set to
your home dir, they do not cd into it by themselves.

If you want to start your shell without cygwin.bat from the desktop
(in a console window) you can use another trick:

ash and bash will try to read a file `/etc/profile', tcsh will try
to read `/etc/csh.login' on startup when started as login shell.
Set HOME in NT user environment and as the last command in one of
the above files call "cd". 

> 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.

> 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.

> 4) A real puzzling one this: my screen save no longer kicks in after I have
> telnet'd in and disconnected again! I have a short cut on my Microsoft
> Office tool bar that usually starts up the screen saver, but this no longer
> works after telnet'ing in. The screen saver also does not kick in after any
> idle time.

I don't know. No problems with my screensaver here.

> Any ideas, suggestions adn especially fixes to any of the above would be
> much appreciated (how does one buy someone a beer over the Internet?)

Forget the beer. Contribute code instead. ;-)

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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