Working directory fix 3
This commit is contained in:
parent
e2448572d3
commit
a328481d03
|
@ -27,14 +27,14 @@ switch ($argv[1]) {
|
||||||
echo $bot_name ." is working already\n";
|
echo $bot_name ." is working already\n";
|
||||||
} else {
|
} else {
|
||||||
echo "Launching ". $bot_name ."\n";
|
echo "Launching ". $bot_name ."\n";
|
||||||
shell_exec(APPDIR ."bin/parser/worker_html_grabber.php ". $bot_name ." > /www/parser_data/log/". $bot_name .".log &");
|
shell_exec(ROOT_DIR ."/bin/parser/worker_html_grabber.php ". $bot_name ." > /www/parser_data/log/". $bot_name .".log &");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$bots = custom_shuffle($bots);
|
$bots = custom_shuffle($bots);
|
||||||
foreach ($bots as $name => $bot) {
|
foreach ($bots as $name => $bot) {
|
||||||
if (!$bot->active) {
|
if (!$bot->active) {
|
||||||
echo "Launching ". $name ."\n";
|
echo "Launching ". $name ."\n";
|
||||||
shell_exec("bin/parser/worker_html_grabber.php ". $name ." > /www/parser_data/log/". $name .".log &");
|
shell_exec(ROOT_DIR ."/bin/parser/worker_html_grabber.php ". $name ." > /www/parser_data/log/". $name .".log &");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue