User Profile

Collapse

Profile Sidebar

Collapse
meihome
meihome
Last Activity: May 11 '07, 02:12 AM
Joined: May 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • meihome
    replied to Rails doesn't wait for script to finish
    in Ruby
    It turned out to be that my script exit halfway because of error.

    Rail is OK :-)...
    See more | Go to post

    Leave a comment:


  • meihome
    started a topic Rails doesn't wait for script to finish
    in Ruby

    Rails doesn't wait for script to finish

    I have a pretty long process (40 seconds) script.
    It is kicked off from one controller action from web browser.

    The problem is, the Rails does not wait until the process is done. It actually stops the process at about 5 seconds, and goes to the next step.

    def _run_script (my_id)
    system ("my_long_runni ng_script.sh")
    redirect_to :action =>'edit', :id => my_id
    end...
    See more | Go to post
No activity results to display
Show More
Working...