Fixed the scraper call

This commit is contained in:
Darko
2014-05-06 15:18:04 +02:00
parent 54de7a8ea4
commit bc45f21379
+9 -9
View File
@@ -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 {