Find the answer to your Linux question:
Results 1 to 2 of 2
hi I've installed clamav, clamav-daemon and clamav-freshclam on my debian etch stable and I scan all directories using: Code: 05 5 * * * clamscan -r / >/dev/null 2>&1 howto ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    cc
    cc is offline
    Linux Newbie
    Join Date
    Jun 2004
    Posts
    120

    howto send a mail when clamav finds a virus ?


    hi

    I've installed clamav, clamav-daemon and clamav-freshclam on my debian etch stable and I scan all directories using:
    Code:
    05 5 * * *  clamscan -r /  >/dev/null 2>&1
    howto configure to send a mail when clamav finds a virus ?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    From the clamscan(1) manpages:
    -i, --infected
    Only print infected files.
    Depending on which account's crontab you're running that from, you may need to set the crontab(5) MAILTO variable or set up an appropriate alias for yourself.

    (Note that cronjobs by default will send stdout/stderr text to mail.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •