Web app system command
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Joaquin REYES
2020-2-9
Did you ever get a solution?, I am having an error when trying to use the system command in a web app.
回答(1 个)
J. Alex Lee
2020-2-10
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 个评论
J. Alex Lee
2020-2-10
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Web App Server 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!