In my .profile script on my Sun Solaris machines I use the following command to retrieve the host name into an environment variable:
HOST=`uname -n`
This works fine on Sun, but on my Linux machines I get the following message when the .profile runs and the variable is empty:
ksh: ./.profile[10]: uname: not found
What syntax changes do I need to make to get the same funcationality to work on Linux that works on Sun?
Linux Version: 2.4.21-47.ELsmp
Sun version: SunOS 5.8
Thanks!