Shell Script Question about Hostname# Unix - 噫吁兮,危乎高哉
j*n
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.
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.