Originally Posted by kalpesh chhajed
but i want to mail another file not the output file that is generated after executing the command.
I'm not aware of any method to make the CRON daemon send an attachment. You have two other options anyway:
1. explicitly send an e-mail to recipient $MAILTO from inside the script or at the end of the cron job, e.g.
0 4 * * * /path/to/my/job.sh && mutt -s "Subject" -a /path/to/attachment $MAILTO
2. If it is a text file you can send its content to the standard output
so that it will be displayed in the mail body together with the usual output.