Hello all, I am working on a script but I am having a problem figuring out how to accomplish my task. I am stuck at the if statement, here is what I am doing. I want to be notified if the count is less than 6. I know the "$?" is wrong but as it is looking at the exit code. I dont know what I should put there. Any help would be great thanks.
Code:
/bin/df -h
if [ $? -lt 6]; then
"send email."
elif "echo something"
fi