Scheduling updates and scans
HelpSystems recommends updating the Powertech Antivirus DAT files daily, and running scans weekly. The following instructions describe how to schedule these events so they occur automatically.
- Make sure Powertech Antivirus for Linux is licensed and installed.
- Run the command
crontab -e
- Cronjobs work as follows: (minute) (hour) (day) (month) (day of the week) command to execute. EXAMPLE:
The following command will run every Saturday at 1 am.
0 1 * * 6 /opt/sgav/avscan -
Write the cronjob that you would like followed by the command you would like to execute.
-
The command to update the DAT is /opt/sgav/avupdate
-
The command to run the scan is /opt/sgav/avscan
NOTE: You can add any of the parameters for avscan listed under Options (in the Scanning section of this document) to the command.
-
-
Save the file.
- The cron log is located at:
- Linux: /var/log/syslog
- AIX: /var/adm/cron/logEXAMPLE:
Cronjob for DAT file update at 7 pm everyday0 19 * * * /opt/sgav/avupdate
Cronjob for Avscan that runs on Sunday at 1 pm and Quarantines files in /opt/sgav/log/avscan.log0 13 * * 7 /opt/sgav/avscan --quar > /opt/sgav/log/avscan.out