Carlosinfl
Loves the juice
- Joined
- Sep 25, 2002
- Messages
- 6,633
I have the following Cron job scheduled on my Postfix mail server:
This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.
Thanks for any help / suggestions.
Code:
00 18 * * * /usr/bin/clamscan -r --remove /home/
This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.
Thanks for any help / suggestions.