I'm receiving the following error when running a script:
line 6: [: : integer expression expected
I would imagine that the code inside the parenthesis is an integer, however, I can't see where it's going wrong. Please could you tell me how to fix this?
if [ "$( df -h | grep hda1 | cut -c40-42)" -ge "80" ]; then
echo Subject: Production Server : Low Disk Space : Daily reporting for Server
fi