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.4 by pjm2, Fri Jan 26 17:38:50 2001 UTC vs.
Revision 1.6 by pjm2, Fri Jan 26 17:47:18 2001 UTC

# Line 1 | Line 1
1 < #!/usr/local/bin/perl -w
1 > #!/usr/bin/perl -w
2  
3   # -----------------------------------------------------------
4   # Perl i-scream Host.
# Line 170 | Line 170 | sub send_udp_packet() {
170  
171      my($hostname) = hostname();
172      $hostname =~ s/\..*$//g;
173    print $hostname;
173      my($domainname) = `cat /etc/resolv.conf`;
174      $domainname =~ s/domain\s*([^\s]*?)/$1/;
175      my($machine_name) = "$hostname.$domainname";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines