Borrar filtros
Borrar filtros

how can I get username of network user lic?

4 visualizaciones (últimos 30 días)
dayu lai
dayu lai el 15 de Dic. de 2021
Respondida: Walter Roberson el 15 de Dic. de 2021
I installed matlab on linux. And I have a network user lic. On lic server's mlm.opt file, I need to specify the username of client.
My question is how can I get the user name?
I know on windows, the user name can be get by type 'set' in cmd.
What can I do on linux?

Respuesta aceptada

Chunru
Chunru el 15 de Dic. de 2021
Editada: Chunru el 15 de Dic. de 2021
You can try:
$ printenv
or
$ echo $USERNAME

Más respuestas (1)

Walter Roberson
Walter Roberson el 15 de Dic. de 2021
On Mac and Linux:
getenv("USER")
ans = 'mluser'
!whoami
mluser

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by