From: tesla Date: 2006-08-06T04:33:38+09:00 Subject: Re: How to execute an external program - Ruby equivalents to PHP? ------=_Part_29522_24732301.1154806415797 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks! On 8/5/06, Logan Capaldo wrote: > > > On Aug 5, 2006, at 3:12 PM, tesla wrote: > > > PHP has these: > > > > shell_exec -- Execute command via shell and return the complete > > output as a > > string > > system -- Execute an external program and display the output > > passthru -- Execute an external program and display raw output > > exec -- Execute an external program > > > > And a few more that I don't use. Does Ruby have equivalents? I am > > especially > > intersted in a shell_exec counterpart. > > > > thanks > > backticks: > > result = `echo Hello World!` > > > ------=_Part_29522_24732301.1154806415797--