I am searching for how to write a script (for bash) that verifies if there exists a partition that occupies more than x% of the disk (where x is a parameter), and that, if it is the case, sends an e-mailto root with the name of these partitions. I know I somehow have to combine awk, and mail, but I do not find how.
Can someone help ?? Thanks.
Can someone help ?? Thanks.