Matt Harrison wrote:
> Ryan Mckenzie wrote:
>>
>> Regards,
>> McKenzie.
>
> Perhaps the backtick method would work better? I found that system()
> calls sometimes returned random data at the end of the result.
>
> output = `/path/to/app/to/execute`
> puts output
>
> worked a lot better for my case.
>
> HTH
>
> Matt
Hi Matt,
I also need to input some parameters with the program to but I dont
think the backtick method supports that? This is what I have so far...
if system("\"E:\\rails\\public\\progs\\web.exe\"
\"E:\\rails\\public\\progs\\temp.txt\" set=\"10\"")
flash[:notice]= "Console output here"
end
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---