Extended Last Release 1.0

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Extended Last Release 1.0

    Hello,

    I posted to comp.unix.solaris a while back asking if it was possible to
    print all 32-characters of a users ut_user field in a utmpx structure.
    The feedback seemed to indicate that this was not possible, so I wrote
    the extended last:

    [url]http://www.daemons.net/~matty/code/lastx.c[/url]

    In addition to printing all 32-characters of the username, it also
    allows you to print the users who have logged in within the past
    X days. You can also pass the "-u" option to lastx to have it print
    the the number of times a user has logged in, along with the last time
    they logged in:

    ../lastx -d 10 -u
    Username Logins Terminal Host Last Logged in
    matty 45 pts/5 192.168.1.8 Sat May 22 09:35:09 2004
    clay 1 pts/5 192.168.1.8 Sat May 2209:35:19 2004

    The code is not the prettiest, but it seems to work ok. If you have
    recommendations or feedback, I would love to hear it.

    Hope folks find this useful. :)
    - Ryan
    Matty Guest

  2. Similar Questions and Discussions

    1. Acrobat Pro Extended
      I've been wondering for several years about why the Extended version is NOT offered for the Mac platform. Does anyone know the reason?
    2. Extended unit
      Hi, My question is purely theoretical. I add use in my time in University some software that use "extended type". For each variable, we...
    3. Does anyone know of an extended webcontrols.datagrid?
      I need a webcontrol datagrid with extended capabilities...to show thumbnails and hyperlinks..etc. Like this one does that is just a windowscontrol:...
    4. Fun with Fireworks #17 Extended
      Hi all-- Just a note to announce that Fun with Fireworks #17 has been extended an aditional week until 10/26. You've still got time to get your...
    5. usage of Regexp::EXTENDED
      How does it work ? I tried assert_match(/bc/x, "ab cd") But it fails... ProgrammingRuby says: EXTENDED Ignore spaces and newlines...
  3. #2

    Default Re: Extended Last Release 1.0

    Matty wrote:
    > I posted to comp.unix.solaris a while back asking if it was possible to
    > print all 32-characters of a users ut_user field in a utmpx structure.
    > The feedback seemed to indicate that this was not possible, so I wrote
    > the extended last:
    >
    > [url]http://www.daemons.net/~matty/code/lastx.c[/url]
    Does the tool work in UTF-8 locales, too ?

    ----

    Bye,
    Roland

    --
    __ . . __
    (o.\ \/ /.o) [email]roland.mainz@nrubsig.org[/email]
    \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
    /O /==\ O\ TEL +49 641 7950090
    (;O/ \/ \O;)
    Roland Mainz 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