public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* who fails
@ 1997-07-30 22:41 Billinghurst, David
  1997-07-31  9:51 ` David Means
  0 siblings, 1 reply; 3+ messages in thread
From: Billinghurst, David @ 1997-07-30 22:41 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

The b18 version of who.exe gives me:

bash$ who
who: /var/run/utmp: No such file or directory
bash$ who am i
who: /var/run/utmp: No such file or directory

Any ideas?

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst@restech.cra.com.au

It's not my speeling that's the trouble.  It's just taht I can't tipe.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: who fails
  1997-07-30 22:41 who fails Billinghurst, David
@ 1997-07-31  9:51 ` David Means
  0 siblings, 0 replies; 3+ messages in thread
From: David Means @ 1997-07-31  9:51 UTC (permalink / raw)
  To: Billinghurst, David; +Cc: 'gnu-win32@cygnus.com'

Billinghurst, David wrote:
> 
> The b18 version of who.exe gives me:
> 
> bash$ who
> who: /var/run/utmp: No such file or directory
> bash$ who am i
> who: /var/run/utmp: No such file or directory
> 
> Any ideas?
> 
{ snip } 

utmp holds accounting information on unix systems.  There's no such file
(that I'm aware of) for Windows.  I could ramble on about it's internal
structure, but the Solaris man page describes it better than I.

See attached.

:-)


--

David Means
mailto:dmeans@bellsouth.net



utmp(4)                   File Formats                    utmp(4)



NAME
     utmp, wtmp - utmp and wtmp entry formats

SYNOPSIS
     #include <utmp.h>

DESCRIPTION
     utmp and wtmp hold user and accounting information for  com-
     mands  such  as who, write, and login.  These files have the
     following structure, defined in <utmp.h>:

     #define  UTMP_FILE                  "/var/adm/utmp"
     #define  WTMP_FILE                  "/var/adm/wtmp"
     #define  ut_name                    ut_user

     struct utmp {
              char  ut_user[8];          /* user login name */
              char  ut_id[4];            /* /sbin/inittab id (created by */
                                         /* process that puts entry in utmp) */
              char  ut_line[12];         /* device name (console, lnxx) */
              short ut_pid;              /* process id */
              short ut_type;             /* type of entry */
              struct exit_status {
                   short e_termination;  /* process termination status */
                   short e_exit;         /* process exit status */
              } ut_exit;                 /* exit status of a process
                                         /* marked as DEAD_PROCESS */
              time_t ut_time;            /* time entry was made */
     };
     /*  Definitions for ut_type  */
     #define  EMPTY          0
     #define  RUN_LVL        1
     #define  BOOT_TIME      2
     #define  OLD_TIME       3
     #define  NEW_TIME       4
     #define  INIT_PROCESS   5         /* process spawned by "init" */
     #define  LOGIN_PROCESS  6         /* a "getty" process waiting for login */
     #define  USER_PROCESS   7         /* a user process */
     #define  DEAD_PROCESS   8
     #define  ACCOUNTING     9
     #define  UTMAXTYPE      ACCOUNTING  /* max legal value of ut_type */
     /*  Below are special strings or formats used in the "ut_line"  */
     /*  field when  accounting for something other than a process.  */
     /*  No string for the ut_line field can be more than 11 chars + */
     /*  a null character in length.  */
     #define  RUNLVL_MSG     "run-level %c"
     #define  BOOT_MSG       "system boot"
     #define  OTIME_MSG      "old time"
     #define  NTIME_MSG      "new time"

FILES
     /var/adm/utmp



SunOS 5.5.1          Last change: 3 Jul 1990                    1






utmp(4)                   File Formats                    utmp(4)



     /var/adm/wtmp

SEE ALSO
     login(1), who(1), write(1)



















































SunOS 5.5.1          Last change: 3 Jul 1990                    2



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: who fails
@ 1997-07-31 21:52 Sonic Junior
  0 siblings, 0 replies; 3+ messages in thread
From: Sonic Junior @ 1997-07-31 21:52 UTC (permalink / raw)
  To: dmeans; +Cc: GNU Win 32

	Who requires current files in the /var/run directory, which are not
created by default. However, Sergey Okhapkin says an upcoming update should
fix that. It should be available in the next few days. ;)

	SJ

----------
> From: David Means <dmeans@bellsouth.net>
> To: Billinghurst, David <David.Billinghurst@restech.cra.com.au>
> Cc: 'gnu-win32@cygnus.com'
> Subject: Re: who fails
> Date: Thursday, July 31, 1997 12:50 PM
> 
> Billinghurst, David wrote:
> > 
> > The b18 version of who.exe gives me:
> > 
> > bash$ who
> > who: /var/run/utmp: No such file or directory
> > bash$ who am i
> > who: /var/run/utmp: No such file or directory
> > 
> > Any ideas?
> > 
> { snip } 
> 
> utmp holds accounting information on unix systems.  There's no such file
> (that I'm aware of) for Windows.  I could ramble on about it's internal
> structure, but the Solaris man page describes it better than I.
> 
> See attached.
> 
> :-)
> 
> 
> --
> 
> David Means
> mailto:dmeans@bellsouth.net
> 
> 
> utmp(4)                   File Formats                    utmp(4)
> 
> 
> 
> NAME
>      utmp, wtmp - utmp and wtmp entry formats
> 
> SYNOPSIS
>      #include <utmp.h>
> 
> DESCRIPTION
>      utmp and wtmp hold user and accounting information for  com-
>      mands  such  as who, write, and login.  These files have the
>      following structure, defined in <utmp.h>:
> 
>      #define  UTMP_FILE                  "/var/adm/utmp"
>      #define  WTMP_FILE                  "/var/adm/wtmp"
>      #define  ut_name                    ut_user
> 
>      struct utmp {
>               char  ut_user[8];          /* user login name */
>               char  ut_id[4];            /* /sbin/inittab id (created by
*/
>                                          /* process that puts entry in
utmp) */
>               char  ut_line[12];         /* device name (console, lnxx)
*/
>               short ut_pid;              /* process id */
>               short ut_type;             /* type of entry */
>               struct exit_status {
>                    short e_termination;  /* process termination status */
>                    short e_exit;         /* process exit status */
>               } ut_exit;                 /* exit status of a process
>                                          /* marked as DEAD_PROCESS */
>               time_t ut_time;            /* time entry was made */
>      };
>      /*  Definitions for ut_type  */
>      #define  EMPTY          0
>      #define  RUN_LVL        1
>      #define  BOOT_TIME      2
>      #define  OLD_TIME       3
>      #define  NEW_TIME       4
>      #define  INIT_PROCESS   5         /* process spawned by "init" */
>      #define  LOGIN_PROCESS  6         /* a "getty" process waiting for
login */
>      #define  USER_PROCESS   7         /* a user process */
>      #define  DEAD_PROCESS   8
>      #define  ACCOUNTING     9
>      #define  UTMAXTYPE      ACCOUNTING  /* max legal value of ut_type */
>      /*  Below are special strings or formats used in the "ut_line"  */
>      /*  field when  accounting for something other than a process.  */
>      /*  No string for the ut_line field can be more than 11 chars + */
>      /*  a null character in length.  */
>      #define  RUNLVL_MSG     "run-level %c"
>      #define  BOOT_MSG       "system boot"
>      #define  OTIME_MSG      "old time"
>      #define  NTIME_MSG      "new time"
> 
> FILES
>      /var/adm/utmp
> 
> 
> 
> SunOS 5.5.1          Last change: 3 Jul 1990                    1
> 
> 
> 
> 
> 
> 
> utmp(4)                   File Formats                    utmp(4)
> 
> 
> 
>      /var/adm/wtmp
> 
> SEE ALSO
>      login(1), who(1), write(1)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> SunOS 5.5.1          Last change: 3 Jul 1990                    2
> 
> 
> 
> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-07-31 21:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-30 22:41 who fails Billinghurst, David
1997-07-31  9:51 ` David Means
1997-07-31 21:52 Sonic Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).