Hello.
I have the following code to check to make sure an url is up. But I need the ?: or alternative code to return a toggle so I can use and loop to send email so problems can be resolved. Here is the code:
#! /usr/sbin/perl -s
# modules needed
use Watchdog::HTTP;
use Mail::Mailer...
Hello.
I have a script which logs into a PIX to check the number of connections and memory and then strips out what I don't need. But recently I have been having problems with the following error:
Use of uninitialized value in pattern match (m//) at fw.pl line 84, <STDIN> line 5.
Use of...
Hello.
I have a script which gets information from a router in real time. I am wondering if it is possible to format this output in real time. Here is what I am looking for:
Input1 Input2 Input3 Input4
123456 xx.xx 123 Time
What I need is for the format to look nice. Have each...
Hello.
Sorry if the title doesn't make sense. I have some code that grabs a command from a router and puts it into an @variable. My question is I want to only grab a certain part of the @variable. Here is some of the code:
@output2 = $fw->cmd('show conn count');
print @output2;
Which would...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.