Hi, As part of my Rails Application I want the users to be able to start/ stop a perl script in the background... Currently I''ve tried cals like: system("perl perl_script.pl") or `perl perl_script.pl` But I believe the server is actually waiting for the task to end.. Is there any way to run a task in the background? Thanks, Nitro --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Martin Eisenhardt
2008-Aug-26 07:15 UTC
AW: [Rails] Running a Perl script in the background
Hi Nitro, You might want to try system("perl perlscript.pl &") or simply using BackgrounDRb. HTH. Regards Martin Eisenhardt ________________________________ Von: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag von Nitro Gesendet: Di 26.08.2008 03:52 An: Ruby on Rails: Talk Betreff: [Rails] Running a Perl script in the background Hi, As part of my Rails Application I want the users to be able to start/ stop a perl script in the background... Currently I''ve tried cals like: system("perl perl_script.pl") or `perl perl_script.pl` But I believe the server is actually waiting for the task to end.. Is there any way to run a task in the background? Thanks, Nitro --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---