Get current user list under Linux?

Discussion in 'Ruby' started by Paul Hanchett, May 16, 2006.

  1. How would I programmatically get a list of the currently logged in users
    under Linux? How would I do it from Ruby?

    Paul
     
    Paul Hanchett, May 16, 2006
    #1
    1. Advertising

  2. Jeffrey Schwab wrote:
    > Paul Hanchett wrote:
    >> How would I programmatically get a list of the currently logged in
    >> users under Linux? How would I do it from Ruby?

    >
    > `who`

    Thanks, but I already knew *that* one.

    Paul
     
    Paul Hanchett, May 16, 2006
    #2
    1. Advertising

  3. Paul Hanchett

    Tassilo Horn Guest

    Paul Hanchett <> writes:

    Hi Paul,

    > `who`
    >
    > Thanks, but I already knew *that* one.


    So what's wrong with it?

    Bye,
    Tassilo
    --
    "Emacs is not a development tool but a way of life."
    - David Kastrup in alt.religion.emacs -
     
    Tassilo Horn, May 16, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Newton
    Replies:
    0
    Views:
    2,898
    Mike Newton
    Jul 23, 2004
  2. hshdude
    Replies:
    12
    Views:
    1,064
    Dimitri Maziuk
    Nov 4, 2004
  3. bronby
    Replies:
    1
    Views:
    614
    Andrew Thompson
    Jul 15, 2005
  4. Luke Kenneth Casson Leighton
    Replies:
    0
    Views:
    367
    Luke Kenneth Casson Leighton
    Jan 15, 2009
  5. mpnordland
    Replies:
    24
    Views:
    895
Loading...

Share This Page