Hi
I have a volume that i want to run a daily check on to find out disk usage, and email me the results.
I have got as far as checking the size and email status. But cant seem to get the file size included into the email.
Any help appreciated
Regards
Treds
I have a volume that i want to run a daily check on to find out disk usage, and email me the results.
I have got as far as checking the size and email status. But cant seem to get the file size included into the email.
Code:
#!/bin/bash
cd /gpfs/TIER2/TAG_PRIMARY_ARCHIVE
du -sh
echo "Exit status was: $?" | mail -s "Archive Check finished" xxxxx@tagworldwide.com
Regards
Treds