Retrieã„’e data from bash shell?

Hi

I have a question here.
If I want retrive

Ikuta L. 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!

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 L. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs