Perl-Sensitive Sunglasses | |
PerlMonks |
do is not doing it!by cybear (Monk) |
on Apr 12, 2002 at 12:23 UTC ( [id://158551]=perlquestion: print w/replies, xml ) | Need Help?? |
cybear has asked for the wisdom of the Perl Monks concerning the following question:
Wisdom Holders, I have a script, GET.pl, among others, that connects to machines outside of my firewall to retrieve data. Before I initiate that connection I call an external script, pingtest.pl, that determines which of my firewalls can connect to that external server. When a connection failure occures the pingtest.pl script issues an e-mail alert to my OPS team. My problem is: I have no way of telling which script on which server has the failing pingtest.pl. I am using my @values = do '/usr/local/bin/pingtest.pl'; to call the script. It returns info to the @values array but I cannot figure out how to pass the name of the calling script to the pingtest.pl script. my @values = do '/usr/local/bin/pingtest.pl myhostname'; does not work. Please reveal the pearl of PERL of Wisdom that I do not possess.
Back to
Seekers of Perl Wisdom
|
|