j***n 发帖数: 9 | 1 Hi, everyone,
Can someone tell me how to tell which server I am running on
in the Korn Shell environment? Is there a Shell variable for
that, just like $LOGNAME can give you the username of
current user?
Need to perform different calculation on different server,
and do not want to write the script for them.
Thanks in advance. | q***e 发帖数: 21 | 2 you can use hostname, whoami to get your server name and
login user id.
【在 j***n 的大作中提到】 : Hi, everyone, : Can someone tell me how to tell which server I am running on : in the Korn Shell environment? Is there a Shell variable for : that, just like $LOGNAME can give you the username of : current user? : Need to perform different calculation on different server, : and do not want to write the script for them. : Thanks in advance.
| j***n 发帖数: 9 | 3 Thanks alot. hostname works.
【在 q***e 的大作中提到】 : you can use hostname, whoami to get your server name and : login user id.
|
|