From: WATANABE Hirofumi Date: 2001-02-16T12:37:27+09:00 Subject: [ruby-talk:10946] Re: How do I get current login (like Perl's getlogin)? Phil Tomson writes: :I'm trying to figure out the current login that a script is running on, so :I can determine if the user is authorized. Is there anything like Perl's :getlogin() function in Ruby? I don't see anything about it in the Pickaxe :book. % ruby -r etc -e 'p Etc.getlogin' "eban" % ruby -r etc -e 'p Etc.getpwuid.name' "eban" -- eban