Does the mail command work on its own outside the script?
You could include the
date command at the beginning and end of the script, or else use
time scriptname to run it.
Incidentally, no need for
awk and grep, this will do:
Code:
fs=$(df | awk '/testfs/ { print $7}')