hi all
my system is linux red hat
i have a script that runs some object .
the object return some code to the system
i see the code by writing echo $?
i want to ask in the script if $? equals 14
how shell is do that in the script
thanks
if [[ $? -eq 14 ]] ; then
echo "Return status is 14"
else
echo "Return status is not 14"
fi
Heloo...
you can do like
if [ $? -eq 14 ]
then
your tasks...
fi
Thanks,
Arun
thank you very much