Adding the Scheduler to the *Nix Cron

Contents  Previous  Next

Installing KnowledgeTree > Installing KnowledgeTree Community Edition - Source Only Install > Adding the Scheduler to the *Nix Cron


This procedure adds the Scheduler to the Linux cron in a source only installation of KnowledgeTree.

 

Perform the following steps:

1.Open up a root terminal.

 

2.Check if the scheduler is already in the list of cron jobs. To do this, type: crontab -l.

 

3.Is the scheduler on the list?
Yes. Exit this procedure.
No. Add the scheduler to the list. To do this, insert the following line at the end of the crontab, to tell the cron to run the scheduler script every 5 minutes:

       */5 * * * * /path/to/knowledgeTree/bin/scheduler.php > /dev/null

 

Cron Commands:

The table displays the commands used to view and edit the cron:

To ....

... use this command

View jobs in the crontab

crontab -l

Edit the crontab

crontab -e

Start a new line

Press 'o'

Edit a line

Press 'i'

Exit the edit mode

Press the 'esc' key

Save changes and exit

Type ZZ

To exit without saving

Type :q!

 

 

 


© 2008, 2009 KnowledgeTree Inc. - Document Management Software
This work is licensed under a Creative Commons Attribution 3.0 License.
addThis