Create a custom environment variable that stores hostname
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
There should already be one set up for you to use under $HOSTNAME
Verify with this:
That's the problem... some systems that variable exists, and on others it is undefined... but every system can run the hostname command fine. So I was thinking I could just create my own variable to compare from that has the value of the hostname command in it...