![]() |
| Setting up mail notification from command line |
|
budtse
|
Hi,
The email notifications are not handled by clamscan, but by clamtray (the tray icon application). If you don't want to use clamtray and want to use clamscan in scripting, you will have to write your own email-routines in that scripting (e.g. by using WMI scripting). budtse |
||||||||||||
|
|
|||||||||||||
|
nagaraja
|
Hi,
in which way WMI scripting can help me with email sending? Do i need to check scheduled task status? report txt file parsing? something else? Thanks a lot |
||||||||||||
|
|
|||||||||||||
|
budtse
|
I'm sorry, I was wrong. What you need is CDO, not WMI. I'm not a script specialist, but i found an example of how to send an email using VBScript here: https://www.paulsadowski.com/WSH/cdo.htm https://www.paulsadowski.com/WSH/cdo.htm. Roughly what you would need to do in the script is: 1. Start clamscan (save the report with --log parameter) 2. Check the return code of clamscan (see the documentation on clamav.net) 3. If viruses are detected (the return code will tell you this), send an email using the example in the link above. You can use the scan log file as email body. I do not have the time to create the script for you now. If you do find the solution, please consider to publish it here (in the tutorials section). It might be usable for others too. regards, Peter |
||||||||||||||
|
|
|||||||||||||||
| Setting up mail notification from command line |
|
||
|
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.


