X-Spam-Check-By: sourceware.org Message-ID: <44847BC3.192692D6@dessent.net> Date: Mon, 05 Jun 2006 11:45:23 -0700 From: Brian Dessent 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/