Re: hostname/IP on beacon?


> I see where I can comment out the Net::Domain call and use a hostname call:
> 
> #my  $host  = hostname;         # Use Sys::Hostname to get good hostname
> my $host = Net::Domain::hostfqdn() || die "Unable to get fqdn: $!\n";
> 
> but when I tried switching the comments it complained that it 
> couldn't use  "hostname" because strict was on.

Hi, Debbie -- Add a

	use Sys::Hostname;

line up in the top, with the rest of the uses, and that should allow you to
try going back to hostname instead of using the Net::Domain call.

Please let me know how it works for you, as I'm looking at trying to make
that part of the code a little smarter than it currrently is.

Thanks!

Mitch
--
Mitch Kutzko | mitch@dast.nlanr.net | mitch@ncsa.uiuc.edu | 217-333-1199
Project: http://dast.nlanr.net/  |  Personal: http://hobbes.ncsa.uiuc.edu/



Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index