Dear All,
How would I get the username in mac through ruby
like in windows I am using ENV[‘USERNAME’]
ENV[‘USERNAME’]- it gives nil in mac system
cheers
A
Dear All,
How would I get the username in mac through ruby
like in windows I am using ENV[‘USERNAME’]
ENV[‘USERNAME’]- it gives nil in mac system
cheers
A
On a mac running OS X the username is in ENV[‘USER’]
Peter H. wrote:
On a mac running OS X the username is in ENV[‘USER’]
Cheers Peter. Thanks
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs