delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/19/19:45:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010919193829.0243d7d8@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Wed, 19 Sep 2001 19:43:50 -0400
To: tplesco <tod AT megachump DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: running who
In-Reply-To: <20010919162429.A1840@megachump.com>
Mime-Version: 1.0

At 07:24 PM 9/19/2001, tplesco wrote:
>I have a /var/run/utmp file which remains 0 bytes.
>
>I have run 'mkdir -p /var/run && touch /var/run/utmp' but
>the utmp does not update.
>
>I would like to have the functionality of knowing who's using cygwin
>at any given moment.


Pardon me for asking but doesn't /var/run/utmp only get updated if someone
uses "login"?  If true, then I assume you're content with only seeing 
those who might actually log on with login (which is not used by default
with Cygwin).  In most Cygwin installations, I think /var/run/utmp will 
tend to be empty simply because people don't use login.


>Does anyone having a workaround?



Check out the source if you're really interested.  There's no need to 
find a workaround when there is code available to inspect and fix (as
needed).

Enjoy! :-)



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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