I want to write a script that tests during execution on which machine it is running. I'd like to test for the name of the localhost, something like
Code:
if [ $localhost = fs01phy ]; then echo jepp ; fi
But I don't know how to get the name of the localhost. There is no environment variable called $LOCALHOST or the like.
Thanks,
Lotharster