whoami: a pedestrian user id retriever

버전 1.0.0.0 (2.77 KB) 작성자: us
whoami displays a full user id and retrieves system properties
다운로드 수: 3.2K
업데이트 날짜: 2008/6/23

라이선스 보기

WHOAMI displays a long user id (LID) in the form
%time|username|domain|hostname|osarch|osname|osver|MLver

WHOAMI optionally returns various system properties including a short user id (SID), which only contains static information about the current system
programmers can easily create their own IDs or change the built-in formats, which may be a useful tag in source control

example of the short output (note: formatting will most likely be bad)

>> w=whoami;
>> w
magic: 'WHOAMI'
WHOAMIver: '18-Jun-2008 13:47:52'
MLver: '7.6.0.324.R2008a'
runtime: '18-Jun-2008 14:02:09'
sid: '%us|USZ|ws-nos-36362|x86|Windows XP|7.6.0.324.R2008a'
lid: [1x77 char]
name: 'us'
domain: 'USZ'
host: 'ws-nos-36362'
ip: 'xxx.yyy.141.135'
osarch: 'x86'
osname: 'Windows XP'
osver: '5.1'

see

>> help whoami

for further explanations of the self-explanatory snippet

인용 양식

us (2024). whoami: a pedestrian user id retriever (https://www.mathworks.com/matlabcentral/fileexchange/20321-whoami-a-pedestrian-user-id-retriever), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기
도움

줌: getUserName

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

added more information in the help section and the screen shot, which got lost the first time; version tag 18-Jun-2008 13:47:52