Skip to content

Request for startup code execution to behave more like -r command line option #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dnmiller opened this issue Apr 1, 2025 · 1 comment
Assignees
Labels
answered question Further information is requested waiting for response

Comments

@dnmiller
Copy link

dnmiller commented Apr 1, 2025

Hello,

Our org heavily uses the -r command line option in a Linux environment for various scripts. While matlab-proxy does support some startup code execution, the fact that no output is displayed in the command window makes debugging a challenge and the feature overall less useful. Would it be possible to have the startup code from the command window, or perhaps add another env variable for this?

Thanks.

@diningPhilosopher64 diningPhilosopher64 self-assigned this Apr 2, 2025
@prabhakk-mw prabhakk-mw added question Further information is requested and removed needs-triage labels Apr 2, 2025
@krisctl
Copy link
Member

krisctl commented Apr 11, 2025

Dear @dnmiller, thank you for using matlab-proxy package!

Would it help in your case if the output of executing custom MATLAB startup code is saved in a file on your file system? (assuming the output is not suppressed using a semi-colon). If yes, then the feature is currently available in the product.

The file containing the output of this startup code gets saved in <HOME-DIR>\.matlab\MWI\hosts\<HOSTNAME>\ports\<MATLAB-PROXY-PORT>\startup_code_output.txt. The path to this file is also displayed in the terminal when we access matlab-proxy endpoint.

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested waiting for response
Projects
None yet
Development

No branches or pull requests

4 participants