I have the following syntax for resolving the host name in Windows:my $host=`$ENV{windir}/system32/hostnameWhat is the equivalent in Solaris? Any suggestions on scripting such that it resolves the O/S before setting $host?
my $host = `hostname`;There is a command named hostname (which, if I recall correctly, just echos/etc/hostname.le0 (or whatever the primary network interface is))Andy
use Sys::Hostname;my $hostname = hostname();