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

8 vues (au cours des 30 derniers jours)
Kenji Le
Kenji Le le 13 Août 2024
Commenté : Amith le 9 Sep 2024
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 ?

Réponses (1)

Amith
Amith le 14 Août 2024
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 commentaires
Kenji Le
Kenji Le le 21 Août 2024
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 le 9 Sep 2024
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!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by