delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/30/12:51:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Backus <eric_backus AT agilent DOT com>
Subject: Re: Cygwin 1.7, who version 7.0 does not respond with a value
Date: Fri, 30 Oct 2009 17:50:44 +0000 (UTC)
Lines: 28
Message-ID: <loom.20091030T184345-512@post.gmane.org>
References: <360747 DOT 37654 DOT qm AT web30807 DOT mail DOT mud DOT yahoo DOT com> <4AE88B7F DOT 2040401 AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Larry Hall (Cygwin <reply-to-list-only-lh <at> cygwin.com> writes:

> On 10/28/2009 10:04 AM, Larry W. Virden wrote:
> > when I type the who command within a Cygwin window, only an empty line
> > is  returned.
> >
> > ...
> >
> > It looks, to me, as if perhaps we are missing some setup that results in
> > entries being written to utmp when a local Cygwin window is opened. I've
> > just not been able to determine what that is yet.


> 'cygwin.bat' does not "login" to anything, so you won't see user login data 
for
> "sessions logged in" this way.  If you want to see actual logged in users, 
you
> will need to use 'login' or 'ssh' to really log them in.


On the other hand, rxvt will create utmp entries, and so will mintty if told 
to with the -u option.  Presumably xterm also creates utmp entries.  Even 
screen creates utmp entries for it's separate windows.  So if you try using 
one of these programs instead of just the default windows command window, you 
can get who to return a list of sessions.
-- 
Eric



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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