K
kp
My perl module file includes this line:
$HOSTNAME = "/usr/bin/hostname";
I have sourced this perl module file in my perl script.
In my perl script I have an if loop :
if ( `$HOSTNAME` eq "rsd2" ) {
print "NFS server is fsd2";
}
However, this command substitution does not seem to work.
Any clues???
-kp
$HOSTNAME = "/usr/bin/hostname";
I have sourced this perl module file in my perl script.
In my perl script I have an if loop :
if ( `$HOSTNAME` eq "rsd2" ) {
print "NFS server is fsd2";
}
However, this command substitution does not seem to work.
Any clues???
-kp