Ask a Question related to AIX, Design and Development.
-
Tom Lowrie #1
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
-
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 ... -
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... -
Jason Mather #2
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
-
Kent Squires #3
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.
>
>-- JasonKent Squires Guest
-
Tom Lowrie #4
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



Reply With Quote

