I don't really get what you're after but here's some hint for bash:
#!/bin/bash
CONFIGFILE=<path to file>
LOGFILE=<path to log file>
read URL < "$CONFIGFILE"
echo "Fetching $URL..."
wget -o "$LOGFILE" "$URL"
# examine based from return value
case "$?" in
0)
....
;;
1)
echo "WARN"
;;
2)
echo "ERROR/FATAL"
;;
esac
# examine from logfile
if grep '<expression>' "$LOGFILE" >/dev/null; then
...
elif grep ...; then
...
...
fi
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
my $filename="data.txt";
open(FILE, $filename) or die ("could not open $filename!") ;
while (my $data = <FILE>)
{
chomp $data;
my $status = getstore($data,my $file1);
print "The status of the URL $data is $status\n"
}
close (FILE);