Unisar 1.24.1867 manual Edit the cron table

Page 74

11

Using

Updates

BitDefender

 

Edit the cron table

The first method is to edit the cron tables, using the crontab tool. For example, if you want to run a daily update, run the following as root:

#crontab -e

Then add the next line:

00 02 * * * /opt/BitDefender-scanner/bin/bdscan --update

All you have to do now is to signal the cron daemon to reload the crontables. Run the next command and look for the process-id of crond, located in the second column.

#ps aux grep crond

With the process-id (PID) in mind, issue the following command to signal the crond daemon. Replace PID with the corresponding process-id value.

#kill -HUP PID

This way, you will run the update every night at 2:00 AM.

Use cron.* scheduling facility

Depending on you Linux distribution, there could be another method for regular updates. Most of the major distributions use cron to run some scripts located in several directories, on a hourly, daily, weekly and monthly basis. Although not very accurate, this method provides a very simple way to add cron new job or to remove it.

First, you should look for several directories, such as /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly. For this example you could use the cron.daily or even cron.hourly directories.

Create the following file, name it bdscan-updateand place it in the selected directory. Do not forget to change the INSTALL_PATH according to your installation, if you have not installed under default location.

74

Image 74
Contents Users Guide Users Guide As every cat owner knows, nobody owns a cat BitDefender Antivirus Scanner for Unices Table of Contents Real life usage UninstallConfiguration file Testing BitDefender BitDefender integrationProduct registration UpdatesFrequently Asked Questions Support Best practicesBitDefender Antivirus Scanner for Unices Viii End User Software License Agreement End User Software License Agreement End User Software License Agreement Xii Typographical conventions PrefaceConventions used in this book Command AdmonitionsBook structure Request for Comments Description and features Description and features Why BitDefender? OverviewData Security Division Softwin Description Product features BitDefender Antivirus Scanner for UnicesKey Features Scanning mechanism More in the manualFeatures Installation Installation Hardware system requirements PrerequisitesSystem requirements Linux convention Package naming conventionSoftware system requirements Linux requirementsFreeBSD convention Installation Test the rpm and deb packages Package installationTest the package for integrity Test the self-extractable archive Test the FreeBSD tbz packageInstall the deb package Install the packageInstall the rpm package Install the self-extractable archiveAdditional parameters Installer Install the FreeBSD packageConfigures the quarantine directory Uninstall the deb package UninstallUninstall the rpm package Uninstall using the self-extractable archiveUninstall from the ports collection Uninstall the FreeBSD packageUninstall a package downloaded locally Using BitDefender Using BitDefender Configuration file System versus User configurationMore about triggered update Key DescriptionUsing07 BitDefender Regular users and quarantineUsing BitDefender Product registrationEicar online resources Testing BitDefenderScan an executable file Command output will be the following Scan an archiveScan a mailbox Tmp/mail.mbox Scan a regular file Real life usageVirus scanning Scan a directory Scan the entire system Scan the archives Actions on archivesScan the mailbox Using the log file ReportGet more information Display the virus listVirus submission Display the product versionDesktop integration Midnight CommanderBitDefender integration Do not break the last line Different installation pathKDE Konqueror Krusader Action on file in KonquerorROX-Filer Krusaders User ActionsPine Pine Information CenterWhat to do with infected emails This is how the screen should look likeExit Status Interval 1,254 Evolution BitDefender pipe bdscanpipeKMail Server integration Filter actions in KMailMailScanner Qmail-Scanner installationMailScanner installation Amavisd-new Change it to the following formAmavisd-new installation Using Run the triggered update UpdatesTriggered update Regular updatesEdit the cron table Manual update Http proxyOrder to extract the updates Check the expiration date Product registrationTrial License License for home or personal use License for commercial use Best practices Best practices Getting help Getting help Frequently Asked Questions Getting help BitDefender Knowledge Base SupportSupport department Address Contact informationWeb addresses Softwin GmbHRomania BitDefender LLCGetting help Manual Pages Manual Pages Options SynopsisDescription Manual Pages Actions Examples FilesBugs See alsoManual Pages Glossary Disk drive Command lineCookie DownloadFilename extension EventsFalse positive HeuristicNon-heuristic Macro virusMail client Packed programsScript PortReport file Startup itemsVirus definition UpdateVirus Worm