Hello again,
I am sorry guys better I would have searched before I posted my
problem.
For others who may need the same anwer:-
http://www.linuxquestions.org/questi...d.php?t=258523
http://www.linuxquestions.org/questi...d.php?t=365158
http://www.linuxquestions.org/questi...d.php?t=276564
As it is:-
billym.primadtpdev>cat ~/1
while read line;do
eval $line
done
echo $XX_abba $XX_beatle $XX_cloop
My implementation simplified:-
alive.sh:--------------------------------
echo Pinging $lnx
ping -c 1 $lnx
if [ $? != 0 ]; then
echo
echo
echo
echo OOPS $lnx is not responding
echo
echo
echo
fi
ser.dat:__________________________________________
myser1.mydom.com
myser15.mydom.com
myser11.mydom.com
myser12.mydom.com
myser21.mydom.com
up.sh:------------------------------------------------
#!/bin/bash
for line in `cat ser.dat`
do lnx=$line
export lnx
./alive.sh
done
___________________________________________________________
and then:-
./up.sh
Thanks in past