[Rails] off topic: running non-ruby programs through command line
Michael Siebert
info at siebert-wd.de
Wed Aug 9 06:36:02 GMT 2006
2006/8/8, Romeu Henrique Capparelli Fonseca <rfonseca at fpf.br>:
>
> Hi.
> It's not a good idea, IMHO, to call an external app on a http session. You
> will hang your session unless you work with threads / forks.
>
> A good way is:
>
> - Drop a file on a directory with all parameters you need.
> - Create an robot that reads the directory from time to time and calls
> your java app with parameters is file.
> -- Before calling the java app is good to move the dropped file to avoid
> getting the same file several times.
another way: use the backgrounDRb plugin. so you can even make cron-like
things, status reporting back to the app, etc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060809/74e56f22/attachment.html
More information about the Rails
mailing list