I want to run MATLAB in background in Linux ( On a server ) So that I am able to interect with this running job i. e I am able to call a function and display its output on the screen .

6 views (last 30 days)
I know that I can run matlab in background using nohup . But then how can I interact with this matlab job using some shell script / php script to give inputs to the running programming and take output from it.

Answers (1)

Walter Roberson
Walter Roberson on 29 Jun 2013
  4 Comments
Anirudh Goyal
Anirudh Goyal on 29 Jun 2013
Yes , I want the same background process to be able to serve multiple queries precisely . is there any way out except using Matlab Production Server ?
Walter Roberson
Walter Roberson on 29 Jun 2013
Sure. But you will need to create the equivalent of the Request Server (even if it only has one worker). You would use php or the like on your web server to send requests to the request server (probably via TCP), which would translate them into calls to its instance of the MATLAB Engine. If the calls start to get complex then you will need to watch out for interference between the engine variables used for the different requests.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!