I would like a bash script that sends me a weekly email displaying the breakdown of disk space used based on a array of file list. Would this be possible using the
Had a look on Google to find anything that I could use without much luck.
Use cron to run a job and send the results to you.
in your crontab will run once a week on Saturday at 1AM.
This assumes that your server is set up to send mail to your email address.
If you need something more complicated, you can wrap the command in a script that does stuff.
I don't understand the "array of file list part", but it's certainly possible with
For a very basic version, add the following script to your
This requires that you have mailx and a working SMTP system installed.