From: Mateusz Tybura Date: 2008-03-15T02:14:52+09:00 Subject: Re: retrie愒e data from bash shell? ------=_Part_1694_12481852.1205514901958 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline That's special variable called ENV that can be used like Hash. It have a lot of information like USERNAME, PROCESSOR_ARCHITETURE and many more. To print username use: puts ENV["USERNAME"] 2008/3/14, Ikuta Lin : > > Ikuta Lin wrote: > > Hi > > > > I have a question here. > sorry about that.. btw how I delete my post.. > If I want retrieve data from bash shell like as below > name=`$USER` > > what can I do? > > Thanks a lot! > > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_1694_12481852.1205514901958--