I am trying to compare actual values from /etc/sysctl.conf to the recommended values using shell scripting. Both the values are same but instead of if else statement is getting executing.
shmmnireq=4096
shmmni= grep "shmmni" /etc/sysctl.conf | cut -d " " -f3
echo $shmmnireq
echo $shmmni
if [[ $shmmnireq == $shmmni ]];
then
echo "shmmni is configured"
else
echo "shmmni is not configured"
fi
and output is4096
4096
shmmni is not configured
Aucun commentaire:
Enregistrer un commentaire