I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin.
- POSIX and PERL are preferred.
Can anyone help, please?
I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin.
Can anyone help, please?
the command is simple, you can use
df|awk '{print $1 $3 $4}' | mail username
To make is check every 24 hours, you ll have to set this command as a cron job.