Quote:
Originally Posted by madhusmita
I have scripts and when I run mannualy it passed but I would like to run one by one at a time like automated. But When I run in one by one in automated the 1st one is executed and did not jump to 2nd one.Please suggest how to run one by one at a time in automated env.
sample of Script
E=`${AgcfShell} -l ${AgcfUser} ${AgcfIp} "trap '' INT;. ~/.profile >/dev/null 2>/dev/null; /usr/bin/hostname"`
D=`${AgcfShell} -l ${AgcfUser} ${AgcfIp} "trap '' INT;. ~/.profile >/dev/null 2>/dev/null; /usr/bin/uname -a"`
if [ "$D" == "SunOS $E 5.10 Generic_127112-10 i86pc i386 i86pc" ]
then
echo "PASSD";
else
echo "FAILED";
fi
is there anything have to change in the script ??
|
when I am running like
Script1 &
Script2 &
it is automated running but if Script1 is failed but results is showing passed ..please suggest..