필터 지우기
필터 지우기

how can I get username of network user lic?

조회 수: 4 (최근 30일)
dayu lai
dayu lai 2021년 12월 15일
답변: Walter Roberson 2021년 12월 15일
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?

채택된 답변

Chunru
Chunru 2021년 12월 15일
편집: Chunru 2021년 12월 15일
You can try:
$ printenv
or
$ echo $USERNAME

추가 답변 (1개)

Walter Roberson
Walter Roberson 2021년 12월 15일
On Mac and Linux:
getenv("USER")
ans = 'mluser'
!whoami
mluser

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by