This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin 1.7(even in 1.5) user logined through cygwin.bat can't show whit "w" command
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 26 May 2009 23:48:30 -0400
- Subject: Re: Cygwin 1.7(even in 1.5) user logined through cygwin.bat can't show whit "w" command
- References: <f4d6f44b0905261856u162c081q3258a7e7146596b3@mail.gmail.com> <f4d6f44b0905261858w6771b43et4bdf8e66f0c8db2@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
Huang Bambo wrote:
As showed in the title.
If I start a shell from cygwin.bat, the "w" and "who" command showed
nothing while the shell from ssh can.
And I also think the tty should be pts/x, not ttyx.
Set "CYGWIN=tty" in your Windows environment if you want/need 'bash'
to register as a terminal when invoked from any 'cmd.exe' (like 'cygwin.bat'
does). See:
<http://cygwin.com/1.7/cygwin-ug-net/using-cygwinenv.html>
Note that other terminals (mintty, xterm, rxvt) don't require this because
they know they are terminals.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/