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
···
--
Posted via http://www.ruby-forum.com/.
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
--
Posted via http://www.ruby-forum.com/.
On a mac running OS X the username is in ENV['USER']
Peter Hickman wrote:
On a mac running OS X the username is in ENV['USER']
Cheers Peter. Thanks
--
Posted via http://www.ruby-forum.com/\.