From: Dave Oshel Date: 2003-06-01T03:19:16+09:00 Subject: Re: Accessing utmp/wtmp in Ruby 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? `who`.each { |w| p w } puts `who` There's probably more ways than that, but I'm new here too :) -- 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_