Is there a code for Ruby on Rails to open Command Prompt, input a
line, and execute it? If not, is there something similar or an
alternative I can use?
Thanks,
anon_comp
Is there a code for Ruby on Rails to open Command Prompt, input a
line, and execute it? If not, is there something similar or an
alternative I can use?
Thanks,
anon_comp
On May 25, 9:24 pm, anon_comp [email protected] wrote:
Is there a code for Ruby on Rails to open Command Prompt, input a
line, and execute it? If not, is there something similar or an
alternative I can use?
system, `` or IO.popen ?
Fred
On May 25, 4:42 pm, Frederick C. [email protected]
wrote:
On May 25, 9:24 pm, anon_comp [email protected] wrote:
Is there a code for Ruby on Rails to open Command Prompt, input a
line, and execute it? If not, is there something similar or an
alternative I can use?system, `` or IO.popen ?
Fred
I’ve tried IO.popen and couldn’t seem to get it to take in additional
parameters (sorry, seemed to have forgotten that information) As for
the other two, I have no idea how to use them.
anon_comp wrote:
On May 25, 4:42�pm, Frederick C. [email protected]
wrote:On May 25, 9:24�pm, anon_comp [email protected] wrote:
Is there a code for Ruby on Rails to open Command Prompt, input a
line, and execute it? If not, is there something similar or an
alternative I can use?system, `` or IO.popen ?
Fred
I’ve tried IO.popen and couldn’t seem to get it to take in additional
parameters (sorry, seemed to have forgotten that information)
Check its documentation.
As for
the other two, I have no idea how to use them.
So read the docs and/or the Pickaxe Book! What’s the problem?
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
You can use system system method in the kernel class of ruby for this
purpose
look at this link
http://ruby-doc.org/core/classes/Kernel.html#M005971
Hope this helps you.
-Saurav
Thanks everyone for the information. I got it to work
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs