Hi,
Please help here for below are the correct syntax or not for elif for korn shell.
if [ $gg -gt 0 ] && [ $T -gt 0 ] && [ $T1 -gt 0 ] && [ $T2 -gt 0 ] ; then
echo "ALL Servers are Running"
elif [ $gg -eq 0 ] ; then
echo "gg Not Running"
fi
Hi,
Please help here for below are the correct syntax or not for elif for korn shell.
if [ $gg -gt 0 ] && [ $T -gt 0 ] && [ $T1 -gt 0 ] && [ $T2 -gt 0 ] ; then
echo "ALL Servers are Running"
elif [ $gg -eq 0 ] ; then
echo "gg Not Running"
fi
What happens if you run it, eventually with the xtrace ( -x
) option set?