Hi!

I'm doing on support new antivir to Q-S.
It's Dr.Web - have a look on www.sald.com

Everything is looking good.

Now I have this little problem:
Antivir program is putting \n in output when line is too long.

>From antivir description I get something like this:

(Exact copy from output  - with breake lines)
/var/spool/qmailscan/DOMAIN10204155824098628/snoopy.scr infected with Wi
n32.HLLM.Klez.4

Next line may follow by other  desc:
/var/spool/qmailscan/DOMAIN10204155824098628/helicopter - Ok

Or this on end:
Scan report for "/var/spool/qmailscan/DOMAIN10204155824098628":
...etc. etc.

The line is broken to 2 lines in output from Antivir.

How to get complete name of founded virus correctly ?
I used this line in Q-S:

if ($DD =~ /\w(.*) infected with (.*)\n/) {

With this I only get the first part of name on first line.
So I get only 'Wi', which is not good...
I don't know how to get the second part from the second line.

Please help, I will then send this suport to Q-S distro.

Thanks.

Matus Hrusovsky
[EMAIL PROTECTED]

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to