Forum: Ruby on Rails Access a command line tool

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0c3ff5ce9673776a302789784f5a3362?d=identicon&s=25 IanTimothy (Guest)
on 2006-02-18 05:23
I had a command line tool that I would like to use to process any files
that is uploaded to my server.

How does the Rails application exexcute a command line tool?

Yours sincerely,
Isaac Timothy
337cdd270761e0e6f4356de45b04d388?d=identicon&s=25 Jonathan Viney (jonny)
on 2006-02-19 11:27
Place the command inside backquotes, you can pass arguments etc..

>> name = 'Jonny'
=> "Jonny"
>> `echo Hello #{name}`
=> "Hello Jonny\n"

This topic is locked and can not be replied to.