in reply to Re: View last login times of everyone on your system
in thread View last login times of everyone on your system

On Linux, the lastlog.h is different. Since I don't have access to a Linux system, I can't look there, but you need to examine the header file and figure out the right sizes for the struct. Apparently it's not "8" and "256".

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: View last login times of everyone on your system

Replies are listed 'Best First'.
Re: •Re: Re: View last login times of everyone on your system
by zentara (Cardinal) on Jan 19, 2004 at 15:43 UTC
    OK, on linux it's
    my $struct_lastlog = "L a32 a256";