Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:40:46+00:00 2026-06-12T12:40:46+00:00

I am designing a web service under Rails 3.2.8 which will execute external program

  • 0

I am designing a web service under Rails 3.2.8 which will execute external program for the users, the expected use case is:

1) User fill a form of parameters and submit the request

2) Rails execute a Matlab program based on user request. It would last a few minutes (less than 3mins) and generate a result file shows that the program is finished

3) During this process, redirecting user to a page shows “loading” status, and monitoring if the result file has been generated

4) Once the result file is generated, reload the page via AJAX and display the results.

Is there a “rails” way to do so? I did this before in JAVA SSH framework but pretty painful. What will be the tools I need? For example, do I need gems like backgroundjob
to manage the task queue? Or are there any “one-stand” gems can handle this? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:40:47+00:00Added an answer on June 12, 2026 at 12:40 pm

    Use one of several job queue providers. Examples include DelayedJob (simplest one ever, no additional pieces required), Resque and Sidekiq (much faster, but you need a small Redis server to use them).

    A “job” will be (depending on the provider) a class or instance, which implements the execution. If it implies running something in the shell, you can do it like

    %x[matlab command --options > output.ext]
    

    (it’s just an example, you can use string interpolation too: %x[#{executable_name}])

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing a web service which will call different external web services according
I am designing a web-service using java and eclipse which returns the user details
When designing a web service that will allow the consumer of the service to
I'm designing a fairly small web application which will run on a Sun application
I am in the process of designing a trading application which will use a
I am currently in the process of designing a system which will use multiple
I am designing a system to deal with an external web service. The service
I'm new to rails and I'm currently using 2.3.8. I'm designing a web service
I'm designing a web service in ASP.NET and VS2008, and am using typed datasets
We're in the early stages of designing a RESTful/resource-oriented web service API for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.