From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-02-16T14:40:02+09:00 Subject: [ruby-talk:10952] Re: How do I get current login (like Perl's getlogin)? In article <982294657.974210.22010.nullmailer@ev.netlab.zetabits.com>, Yukihiro Matsumoto wrote: >Hi, > >In message "[ruby-talk:10945] How do I get current login (like Perl's >getlogin)?" > on 01/02/16, 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. > >require 'etc' >print Etc.getlogin, "\n" Thanks, Matz! I suspect that if I posted a similar query to comp.lang.perl that the odds of having Larry W reply would be pretty slim! Phil