Commit be57b5646d68725576fe5d70253d325fa781132e

Authored by Megan Watson
1 parent bab35d3b

Created a document processor script which uses curl to run the document processor.

Committed by: Megan Watson
Reviewed by: Donald Jackson



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9719 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/bin/cronDocumentProcessor.php 0 → 100644
  1 +<?php
  2 +
  3 +/**
  4 + * $Id:$
  5 + *
  6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + * Portions copyright The Jam Warehouse Software (Pty) Limited
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22 + *
  23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
  25 + *
  26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
  29 + *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
  37 + *
  38 + */
  39 +
  40 +chdir(dirname(__FILE__));
  41 +require_once(realpath('../../config/dmsDefaults.php'));
  42 +
  43 +KTUtil::call_page('search2/documentProcessor/bin/documentProcessor.php');
  44 +
  45 +
  46 +?>
0 \ No newline at end of file 47 \ No newline at end of file
sql/mysql/install/data.sql
@@ -1359,16 +1359,14 @@ UNLOCK TABLES; @@ -1359,16 +1359,14 @@ UNLOCK TABLES;
1359 LOCK TABLES `scheduler_tasks` WRITE; 1359 LOCK TABLES `scheduler_tasks` WRITE;
1360 /*!40000 ALTER TABLE `scheduler_tasks` DISABLE KEYS */; 1360 /*!40000 ALTER TABLE `scheduler_tasks` DISABLE KEYS */;
1361 INSERT INTO `scheduler_tasks` VALUES 1361 INSERT INTO `scheduler_tasks` VALUES
1362 -(1,'Document Processor','search2/documentProcessor/bin/documentProcessor.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'system'), 1362 +(1,'Document Processor','search2/bin/cronDocumentProcessor.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'system'),
1363 (2,'Index Migration','search2/bin/cronMigration.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'system'), 1363 (2,'Index Migration','search2/bin/cronMigration.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'system'),
1364 (3,'Index Optimization','search2/bin/cronOptimize.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'system'), 1364 (3,'Index Optimization','search2/bin/cronOptimize.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'system'),
1365 (4,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'disabled'), 1365 (4,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'disabled'),
1366 (5,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01 00:00:00',NULL,0,'disabled'), 1366 (5,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01 00:00:00',NULL,0,'disabled'),
1367 (6,'OpenOffice test','bin/checkopenoffice.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), 1367 (6,'OpenOffice test','bin/checkopenoffice.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'),
1368 (7,'Cleanup Temporary Directory','search2/bin/cronCleanup.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), 1368 (7,'Cleanup Temporary Directory','search2/bin/cronCleanup.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'),
1369 -(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'enabled'),  
1370 -(9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'daily','2007-10-01 00:00:00',NULL,0,'enabled'),  
1371 -(10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'5min','2007-10-01 00:00:00',NULL,0,'enabled'); 1369 +(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'enabled');
1372 /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */; 1370 /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */;
1373 UNLOCK TABLES; 1371 UNLOCK TABLES;
1374 1372
sql/mysql/upgrade/3.5.5/scheduler_tasks.sql
1 select @id:=ifnull(max(id),0)+1 from scheduler_tasks; 1 select @id:=ifnull(max(id),0)+1 from scheduler_tasks;
2 -INSERT INTO `scheduler_tasks` VALUES (@id,'Document Processor','search2/documentProcessor/bin/documentProcessor.php','',0,'1min','2007-10-01',NULL,0,'system'); 2 +INSERT INTO `scheduler_tasks` VALUES (@id,'Document Processor','search2/bin/cronDocumentProcessor.php','',0,'1min','2007-10-01',NULL,0,'system');
3 3
4 DELETE FROM scheduler_tasks WHERE task = 'Indexing'; 4 DELETE FROM scheduler_tasks WHERE task = 'Indexing';
5 DELETE FROM scheduler_tasks WHERE task = 'Refresh Index Statistics'; 5 DELETE FROM scheduler_tasks WHERE task = 'Refresh Index Statistics';