ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/ihost.pl
(Generate patch)

Comparing projects/cms/source/host/ihost-perl/ihost.pl (file contents):
Revision 1.7 by pjm2, Mon Jan 29 09:04:18 2001 UTC vs.
Revision 1.8 by pjm2, Mon Jan 29 09:19:16 2001 UTC

# Line 170 | Line 170 | sub send_udp_packet() {
170  
171      my($hostname) = hostname();
172      $hostname =~ s/\..*$//g;
173 <    my($domainname) = `cat /etc/resolv.conf`;
174 <    $domainname =~ /domain\s+([^\s]+)/;
175 <    $domainname = $1;
173 >    `cat /etc/resolv.conf` =~ /domain\s+([^\s]+)/;
174 >    my($domainname) = $1;
175      my($machine_name) = "$hostname.$domainname";
176      my($ip) = inet_ntoa(scalar(gethostbyname($hostname)) || 'localhost');
177  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines