From: "Wayne E. Seguin" Date: 2007-08-18T06:57:30+09:00 Subject: Re: Call a program --Apple-Mail-4-774752510 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Aug 17, 2007, at 17:44 , greg wrote: > Hi all, > > Can anyone help me with the following issue: How can I call a program > (such as less, g++ etc.) from ruby script and save the output to a > variable inside the ruby script? ls = `ls -la` HTH, ~Wayne s///g Wayne E. Seguin Sr. Systems Architect & Systems Administrator --Apple-Mail-4-774752510--