Hi,
I am writing a script that among other things will be checking for various files on mount points. One of the conditions is that unless the server has failed over the df command will show root ( / ). If when checking the files the script comes across /, I want it to skip it, otherwise to complete the printf statement.
This portion of the script is
if ${MNTD} == "/" then
> /dev/null
else
printf '%12 ......
When running, if the script comes across a / I am receiving a 'Division by 0' error and it will abort the query.
Any suggestions would be greatly appreciated.
Thanks