cesargarza has asked for the wisdom of the Perl Monks concerning the following question:
is there anyway script takes the hostaddress (unlimited) and put in the above URL. as many host address also as many URl......my $store; my $memory; my $temp; my @address; { $address[0] = $ARGV[0]; $address[1] = $ARGV[1]; } my @url; { $url[0] = "http://$address[0]:8161/admin/xml/queues.js +p"; $url[1] = "http://$address[1]:8161/admin/xml/queues.js +p"; } my @xmldata; my $i = 0; foreach (@url) { my $dump; eval { $dump = qx|/usr/bin/curl --user admin:admin -s $url[$i +]|; #$xmldata[0] = XMLin($dump); push(@xmldata, XMLin($dump)); }; if ($@) { print "URL $url[$i] down\n"; } $i++; } my $queue; my $data; my $issuecount = 0; my $issues = ""; my $queueCount = 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Host address not getting
by kennethk (Abbot) on Sep 26, 2013 at 20:05 UTC | |
by cesargarza (Initiate) on Sep 26, 2013 at 20:56 UTC | |
by kennethk (Abbot) on Sep 26, 2013 at 21:23 UTC | |
by Marshall (Canon) on Sep 27, 2013 at 03:54 UTC |