Please be gentle, if this is a stupd or often
asked question, I am just starting my first
steps in Ruby.
Is there a way to get the logged in users on
a unix host in Ruby, and their Displays? In
Perl there is Sys::Utmp, which does the job
nicely. Is there something similar for Ruby?
TIA
/ralph
who
.each { |w| p w }
puts who
There’s probably more ways than that, but I’m new here too
···
On Saturday, May 31, 2003, at 11:58 AM, Ralph Aichinger wrote:
Please be gentle, if this is a stupd or often
asked question, I am just starting my first
steps in Ruby.
Is there a way to get the logged in users on
a unix host in Ruby, and their Displays? In
Perl there is Sys::Utmp, which does the job
nicely. Is there something similar for Ruby?
–
David C. Oshel mailto:dcoshel@mac.com
Cedar Rapids, Iowa http://homepage.mac.com/dcoshel
``I think most pleasantly in metaphors, and smoking brings metaphors to
mind." - Augustus Srb, in Alexei Panshin’s Star Well