From bc45f2137989252dd74aa61bedeedc390d3807fb Mon Sep 17 00:00:00 2001 From: Darko Date: Tue, 6 May 2014 15:18:04 +0200 Subject: [PATCH] Fixed the scraper call --- bin/monitor.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/monitor.php b/bin/monitor.php index 4656c9c1f..b218679b6 100644 --- a/bin/monitor.php +++ b/bin/monitor.php @@ -9,7 +9,7 @@ require_once(dirname(__FILE__) . "/../lib/showsleep.php"); require_once(dirname(__FILE__) . "/../lib/functions.php"); -$version = "0.3r1142"; +$version = "0.3r1143"; $db = new DB(); $functions = new Functions(); @@ -1896,28 +1896,28 @@ while ($i > 0) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \ - $_php $ircscraper cz false false true'" + $_php $ircscraper true'" ); //Check to see if the pane is dead, if so respawn it. if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^0 | grep -c dead") == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \ - $_php $ircscraper cz false false true'" + $_php $ircscraper true'" ); } } else if ($scrape_cz == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \ - $_php $ircscraper cz false false true'" + $_php $ircscraper true'" ); //Check to see if the pane is dead, if so respawn it. if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^0 | grep -c dead") == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \ - $_php $ircscraper cz false false true'" + $_php $ircscraper true'" ); } } else { @@ -1930,28 +1930,28 @@ while ($i > 0) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \ - $_php $ircscraper efnet false false true'" + $_php $ircscraper true'" ); //Check to see if the pane is dead, if so respawn it. if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^1 | grep -c dead") == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \ - $_php $ircscraper efnet false false true'" + $_php $ircscraper true'" ); } } else if ($scrape_efnet == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \ - $_php $ircscraper efnet false false true'" + $_php $ircscraper true'" ); //Check to see if the pane is dead, if so respawn it. if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^1 | grep -c dead") == 1) { $DIR = dirname(__FILE__); $ircscraper = $DIR . "/../lib/IRCScraper/scrape.php"; shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \ - $_php $ircscraper efnet false false true'" + $_php $ircscraper true'" ); } } else {