How do I pass username and password for a named user license with no GUI on linux

조회 수: 9 (최근 30일)
Kenji Le
Kenji Le 2024년 8월 13일
댓글: Amith 2024년 9월 9일
I have Matlab R2024A installed on a linux computer with no GUI (terminal only) I want to run matlab -licmode onlinelicensing but also pass my username and password in one line so I don't have to input it in. Is that possible ?

답변 (1개)

Amith
Amith 2024년 8월 14일
Hi Kenji Le,
I understand that you would like to login into your MATLAB using the command line instead of a GUI interface. You could try adding the below command in your bash script or your command line:
echo -e 'ThePassword\n' | matlab TheUsername
Replace the ThePassword and TheUsername strings with your respective password and username. This should help you log in to MATLAB with this username.
Hope this helps!
  댓글 수: 2
Kenji Le
Kenji Le 2024년 8월 21일
Is there a way to pass it without sending it clear text? It is unsafe. Is there a way to generate a license file ?
Amith
Amith 2024년 9월 9일
Hi Kenji,
You can try using this command which utilizes a text file to store your password and then pipes its content into MATLAB command.
cat password.txt | matlab TheUsername
where password.txt contains your password.
I hope this helps!

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by