Correct way to run a .sh script compiled by Matlab with -nodisplay flag

조회 수: 5 (최근 30일)
Davide Di Luzio
Davide Di Luzio 2023년 9월 4일
댓글: Davide Di Luzio 2023년 9월 10일
Hello,
I'm searching the correct way to run a compiled script matlab for Linux with the option -nodisplay.
Unfortunately the official page doesn't have any examples.
This is the command that I'm trying that not work
sudo ./run_myscript.sh /usr/local/MATLAB/runtime/v94ecc -nodisplay
(path of runtime specified after ./ command )
The problem is that the flag -nodisplay didn't work
Thanks in advance for the help
Compiled with Matlab R2018a

답변 (1개)

Ashu
Ashu 2023년 9월 7일
Hey Davide,
It appears that you are encountering difficulties when opening MATLAB with the "-nodisplay" option. To address this issue, I suggest trying the following command as a workaround:
matlab -batch "test.m"
This executes MATLAB script, statement, or function non-interactively. MATLAB:
  • Starts without the desktop
  • Does not display the splash screen
  • Executes statement
  • Displays figure windows, unless combined with the -noFigureWindows or -nodisplay options
  • Displays user-generated modal dialog boxes, but does not display unprompted modal dialog boxes
  • Disables changes to preferences
  • Disables toolbox caching
  • Logs text to stdout and stderr
  • Exits automatically with exit code 0 if statement executes successfully. Otherwise, MATLAB terminates with a non-zero exit code.
Please refer to the following page to learn more about it.
I hope it helps!
  댓글 수: 1
Davide Di Luzio
Davide Di Luzio 2023년 9월 10일
Hello my friend.
Thanks for your reply.
However Is not my situation.
I Must run a MATLAB application compiled on Linux with the application compiler. This must run with "-nodisplay" , any help about this ?
Thanks you. I Will read your link anyway

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by