Filter löschen
Filter löschen

Web app system command

7 Ansichten (letzte 30 Tage)
Julian Schmid
Julian Schmid am 6 Jun. 2019
Bearbeitet: Guillaume am 10 Feb. 2020
Hi,
I was wondering whether it is possible to use the system command to execute an external program (running on Windows) and wait for a response in a deployed web app on a Matlab web server?
Also, an other question just came to my mind: what's the best practice to store permanent data and access them in a standalone executable of a Matlab program. Should I create a folder in C\\:Programs or something?
  2 Kommentare
Joaquin REYES
Joaquin REYES am 9 Feb. 2020
Did you ever get a solution?, I am having an error when trying to use the system command in a web app.
Julian Schmid
Julian Schmid am 10 Feb. 2020
Unfortunatly, I didn't get any response and I decided not to use a web app before I could test the system command within such an app.
But still, would be interesting to know.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

J. Alex Lee
J. Alex Lee am 10 Feb. 2020
To the question:
  • Also, an other question just came to my mind: what's the best practice to store permanent data and access them in a standalone executable of a Matlab program. Should I create a folder in C\\:Programs or something?
Based on the context of your question, maybe worth pointing out that web-deployed and stand-alone-deployed apps will have to deal with paths differently as far as my experience goes.
Not sure about best practices (I would like to know too!), but web apps are run by a guest user on the server (something like MWWebAppClient20XXy), so you just need to make sure whatever path you point to is read-able and/or writeable if you need; so I put a data folder inside its My Documents folder owned by the guest client.
  3 Kommentare
J. Alex Lee
J. Alex Lee am 10 Feb. 2020
This might be a dumb question but how do you access env variables from matlab? I.e. how would I write a code to compute the user's path?
Steven Lord
Steven Lord am 10 Feb. 2020
Use the getenv function.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Web App Server finden Sie in Help Center und File Exchange

Produkte


Version

R14SP1

Community Treasure Hunt

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

Start Hunting!

Translated by