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)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 29 Jun 2013
4 Comments
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.
See Also
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!