Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question How do you schedual tasks


    Hello all,
    I just got clamav up and working, which by the way runs great! Anyway, I would like to schedual it to update and run a scan on a regular basis. Surly there is a way to do this either built into clamav or built into Linux. I am using Fedora core 4, if that helps any.

    Thanks in advance for your help

  2. #2
    you would have to add the script as a crontab entry. Im using debian, but I think it should be in the same location:

    edit /etc/crontab

    the setup is like this

    <minute_of_hour> <hour_of_day> <day_of_month> <month> <day_of_week> <user> <command>
    so, if you wanted to run clamav everyday at midnight:
    0 0 * * * root <path/to/clamav/script>

    or every wed at 5pm:
    0 17 * * 4 root <path/to/clamav/script>

    hope that helps

  3. #3
    I tried editing /etc/crontab. I think it worked but I don't know how to tell. I don't get a print out on the screen so I don't know if clamav didn't find anything, or if it even ran. Is there a way for me to get this info?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! brother_mick's Avatar
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    65
    You could make a test script that just echo`s some text and run that with crontab to assure your self that you can make it run.

  6. #5
    Just Joined! sepius's Avatar
    Join Date
    Jul 2005
    Location
    Australia
    Posts
    38
    I run KlamAV and it has a built in scheduler. Just goto the update tab and set the update virus DB automatically to however many times per day. below this is the date and time it last did an update

    This is running on the KDE desktop (hence KlamAV not ClamAV), if you a running Gnome or something else, it maybe slightly different. If you dont have a GUI front, check at Clam. I am pretty sure they have links to GUI's for most desktops, even windows.

Posting Permissions

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