I have written a script that is run using crontab but when it finishes i need it to mail the results of the script to myself using mailx - how do i do this.
I want to do something like: -
if [ -r $HOME/`date +%a%d`.CHECK_OUT ]
then
mailx `date +%a%d`.CHECK_OUT "max.crook@telewest.co.uk"
fi
Where nnnnnnnnnnnn.CHECK_OUT is the log file
Any ideas ?
I want to do something like: -
if [ -r $HOME/`date +%a%d`.CHECK_OUT ]
then
mailx `date +%a%d`.CHECK_OUT "max.crook@telewest.co.uk"
fi
Where nnnnnnnnnnnn.CHECK_OUT is the log file
Any ideas ?