Commit 74a29f871fc010fcaa69f23b0e78675ed435c88c

Authored by kevin_fourie
1 parent 031e1e8f

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 46 while (1) {
47 47  
48 48 // Run the scheduler script
49   - system("$phpPath scheduler.php");
  49 + shell_exec("$phpPath scheduler.php");
50 50  
51 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 +
... ...