Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

File Space Count

$
0
0
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.


Code:

#!/bin/bash
cd /gpfs/TIER2/TAG_PRIMARY_ARCHIVE
du -sh
echo "Exit status was: $?" | mail -s "Archive Check finished" xxxxx@tagworldwide.com

Any help appreciated
Regards
Treds

Viewing all articles
Browse latest Browse all 16232

Trending Articles