proggybilly
Programmer
Hey all,
I am writing a script that checks to see if my servers have backed up within a certain amount of days. I want to put the server name and number of days into an array for each server, for example @backup would look like:
Then what I want to do is loop through the array and put the information into a single email so that the body looks similar to:
Any help is much appreciated. I am learning alot of perl, but I need to accomplish this before I actually learn what to do as I have a project that is moving faster than my study material.
I am writing a script that checks to see if my servers have backed up within a certain amount of days. I want to put the server name and number of days into an array for each server, for example @backup would look like:
Code:
server1 2
server2 2
server3 1
Then what I want to do is loop through the array and put the information into a single email so that the body looks similar to:
Code:
Server1 has not backed up in the last 2 day(s)
Server2 has not backed up in the last 2 day(s)
Server3 has not backed up in the last 1 day(s)
Any help is much appreciated. I am learning alot of perl, but I need to accomplish this before I actually learn what to do as I have a project that is moving faster than my study material.