rather than dumping the whole file as
arguments to a for loop like this:
for line in `cat $filename`
It would be better to wkeep the while loop:
while read servername
and redirect the standard input of the script when you call it:
thescript.sh <domainlist.txt
|