From dbe88125e911eeb48a7dd649d33d31128ec37919 Mon Sep 17 00:00:00 2001 From: webstergd Date: Tue, 31 Mar 2015 18:50:50 +0200 Subject: [PATCH] Readme now discusses how to create a cronjob and adjusted header size and removed redundant word. --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index ce531c1..a1ba419 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,24 @@ optional arguments: ### Configuration File Many of Maltrieve's command line options can be specified in ```maltrieve.cfg```. +## Automated Execution (Optional) +Cron can be used to automate the execution of Maltrieve. The following example is provided to help get you started. It will create a cron job that will run Maltrieve every day at 2:01 as a standard user. That said, we recommend enhancing this by creating a custom script for production environments. + +### Ubuntu +As a user execute +``` +crontab -e +``` +If installed normally, add the following to the end of the file. +``` +01 02 * * * maltrieve +``` +If downloaded to a folder and executed, add the following to the end of the file. +``` +01 02 * * * cd && /usr/bin/python maltrieve.py +``` +### Redhat +Redhat systems will need to ensure that the user is added to the /etc/cron.allow file. ## License