Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: first "project"

by phenom (Chaplain)
on Jun 01, 2004 at 22:35 UTC ( [id://358734]=note: print w/replies, xml ) Need Help??


in reply to Re: first "project"
in thread first "project"

Thanks for the input! But actually, I did tweak this front-end to work with clamav, which is also on the website here. I don't work on it much, but it does work - although VERY slowly! If you can see any reason why it runs slow for me, let me know and I'll change it.

Replies are listed 'Best First'.
Re: Re: Re: first "project"
by zentara (Archbishop) on Jun 02, 2004 at 12:40 UTC
    "I don't work on it much, but it does work - although VERY slowly! If you can see any reason why it runs slow for me, let me know and I'll change it."

    Ok I see you are running a perl module interface to clamav

    use Mail::ClamAV qw/:all/;
    I'm talking about running the clamscan program itself directly:
    my $results = `clamscan $dir`;
    or something using Tk::Fileevent like:
    my $dir = "/var/spool/mail"; my $program = "/usr/local/bin/clamscan $dir"; open(SCAN, "$program 2>&1 |") or die "Can't open: $!"; $mw->fileevent(\*SCAN, 'readable', [\&fill_text_widget,$t]); MainLoop; sub fill_text_widget { my($widget) = @_; $_ = <SCAN>; $widget->insert('end', $_); $widget->yview('end'); }

    Its almost always faster to run properly designed c programs when doing alot of file access and reading, so let clamscan do it.


    I'm not really a human, but I play one on earth. flash japh
      Ok, I rewrote the clamscan version with your suggestion (see this). But it's still a little sluggish compared to the File::Scan version.

      I'd really like to switch to just doing the clamscan version, as it detects many more viruses.

      I'll try the Tk::Fileevent attempt soon. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://358734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found