I am looking for help with a script for displaying the space available from a df - h command for / (root).
The problem is: If it is below 700 MB I have jobs that are failing... Is there a way I can do a calculation? If it above 700 MB it is good, if it is below 700 MB it will fail. Any help would be appreciated.
I have not gone far at all... I have just started on the script, and it is failing.
I am trying to get the script to read that anything in / below 700 MB is going to fail..
The default unit on POSIX conforming systems is 512-byte blocks; not 1k. And, you can make it a little bit faster by just processing root. If you change the 1st line of the script above to: