Commit 4b2dc877af1d3d323f2fed1eef06aa2c81a543da

Authored by Kevin Fourie
1 parent 6ba571aa

KTS-2568

"Add scheduler service to Linux"
Added sh file.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7526 c91229c3-7414-0410-bfa2-8a42b809f60b
bin/taskrunner.php
@@ -46,7 +46,7 @@ if (!is_file($phpPath)) @@ -46,7 +46,7 @@ if (!is_file($phpPath))
46 while (1) { 46 while (1) {
47 47
48 // Run the scheduler script 48 // Run the scheduler script
49 - system("$phpPath scheduler.php"); 49 + shell_exec("$phpPath scheduler.php");
50 50
51 sleep(10); // Run every 10 seconds 51 sleep(10); // Run every 10 seconds
52 52
bin/taskrunner.sh 0 → 100644
  1 +#!/bin/sh
  2 +"@@BITROCK_INSTALLDIR@@/php/bin/php" "@@BITROCK_INSTALLDIR@@/knowledgeTree/bin/taskrunner.php"
  3 +