Ask a Question related to AIX, Design and Development.

  1. #1

    Default utmp exit_status

    When using fwtmp to view a specific /etc/utmp entry, I
    see an exit_status of 0040 0022. Where are these values
    defined? The corresponding text values, that is.

    When I use 'who -d', the exit_status shows as term=32 and
    exit=18. How is 'who -d' converting the 0040 and 0022 values
    to 32 and 18? Is there a table somewhere?

    Am I correct in using /usr/include/sys/status.h to view
    text descriptions for term=value and /usr/include/errno.h
    for exit=value?

    Thanks,

    Tom
    Tom Lowrie Guest

  2. Similar Questions and Discussions

    1. ANNOUNCE: User::Utmp 1.8
      Hi, I've just uploaded version 1.8 of the User::Utmp Perl module to CPAN. It is immediately available from ...
    2. determining idle time from /etc/utmp ?
      Hi, I'm wondering if there is an easy way to determine how long a TTY has been idle. Right now, I'm just parsing the output of the /usr/bin/w...
  3. #2

    Default Re: utmp exit_status

    Tom Lowrie wrote:
    > When using fwtmp to view a specific /etc/utmp entry, I
    > see an exit_status of 0040 0022. Where are these values
    > defined? The corresponding text values, that is.
    >
    > When I use 'who -d', the exit_status shows as term=32 and
    > exit=18. How is 'who -d' converting the 0040 and 0022 values
    > to 32 and 18? Is there a table somewhere?
    >
    > Am I correct in using /usr/include/sys/status.h to view
    > text descriptions for term=value and /usr/include/errno.h
    > for exit=value?
    >
    > Thanks,
    >
    > Tom

    I have no specific info about these programs, but I notice that
    0040 octal = 32 decimal
    0022 octal = 18 decimal

    Guess my PDP-11 background is showing.

    -- Jason

    Jason Mather Guest

  4. #3

    Default Re: utmp exit_status

    These may be "exit" or "return" codes - defined in
    /usr/include/sys/errno.h


    #define EPIPE 32 /* Broken pipe */


    On Mon, 15 Sep 2003 18:45:34 -0400, Jason Mather <goz02451@yahoo.com>
    wrote:
    >Tom Lowrie wrote:
    >> When using fwtmp to view a specific /etc/utmp entry, I
    >> see an exit_status of 0040 0022. Where are these values
    >> defined? The corresponding text values, that is.
    >>
    >> When I use 'who -d', the exit_status shows as term=32 and
    >> exit=18. How is 'who -d' converting the 0040 and 0022 values
    >> to 32 and 18? Is there a table somewhere?
    >>
    >> Am I correct in using /usr/include/sys/status.h to view
    >> text descriptions for term=value and /usr/include/errno.h
    >> for exit=value?
    >>
    >> Thanks,
    >>
    >> Tom
    >
    >
    >I have no specific info about these programs, but I notice that
    >0040 octal = 32 decimal
    >0022 octal = 18 decimal
    >
    >Guess my PDP-11 background is showing.
    >
    >-- Jason
    Kent Squires Guest

  5. #4

    Default Re: utmp exit_status

    Jason Mather <goz02451@yahoo.com> wrote in message news:<3F66410E.6030108@yahoo.com>...
    > Tom Lowrie wrote:
    > > When using fwtmp to view a specific /etc/utmp entry, I
    > > see an exit_status of 0040 0022. Where are these values
    > > defined? The corresponding text values, that is.
    > >
    > > When I use 'who -d', the exit_status shows as term=32 and
    > > exit=18. How is 'who -d' converting the 0040 and 0022 values
    > > to 32 and 18? Is there a table somewhere?
    > >
    > > Am I correct in using /usr/include/sys/status.h to view
    > > text descriptions for term=value and /usr/include/errno.h
    > > for exit=value?
    > >
    > > Thanks,
    > >
    > > Tom
    >
    >
    > I have no specific info about these programs, but I notice that
    > 0040 octal = 32 decimal
    > 0022 octal = 18 decimal
    >
    > Guess my PDP-11 background is showing.
    >
    > -- Jason

    Jason,

    I checked hex only; guess my lack of a PDP-11 background is showing.
    I'll know better next time. Thanks.

    That answers one question. I'm sure some GURU out there
    knows the answers to the rest. Jump in anytime.

    Tom
    Tom Lowrie Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139