From: Robert Klemme Date: 2011-09-12T20:00:34+09:00 Subject: Re: Network user on Linux On Mon, Sep 12, 2011 at 12:52 PM, Mario Ruiz wrote: > I am able to get the network user in windows though ENV['username'] but > this is not wokring on linux, > Is there any library we can use in both environments to get the network > user login? user = ENV['USER'] || ENV['USERNAME'] or maybe require 'etc' user = Etc.getlogin Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/