delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/05/14:45:41

X-Spam-Check-By: sourceware.org
Message-ID: <44847BC3.192692D6@dessent.net>
Date: Mon, 05 Jun 2006 11:45:23 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Populating /var/run/utmp?
References: <e61s2p$den$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

mwoehlke wrote:

> I would like to use 'w' on my Cygwin installation. I found
> http://cygwin.com/ml/cygwin/2001-09/msg01177.html, but it only seems to
> work on one of my computers:
> 
> $ echo $CYGWIN
> binmode tty ntsec
> $ w
>   13:03:11 up 5 days, 22:30,  0 users,  load average: 0.00, 0.00, 0.00
> USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
> $

'w' works fine for me without having "tty" in $CYGWIN.  But that's
because I use rxvt.  If I set CYGWIN=tty and then start "bash -li" then
"w" also shows the logged on user.  Are you sure you're not trying to
set CYGWIN=tty after the first shell has already initialized?  It won't
work if you do that, it has to be set before.

(BTW, adding "ntsec" to $CYGWIN is a waste of time, as this has been the
default for many years.)

Brian

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

- Raw text -


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