This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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.

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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]