Hi all,
i'm running several bots under linux, but i've been starting the bots from Main.php.
recently i took another stab at getting StartBot.php to work, because its a pain to keep rebooting the bots if they go down.
when i try to run the startbot.php i get the following error:
PHP Notice: Undefined offset: 1 in /home/botname/StartBot.php on line 76
sh: /php: No such file or directory
at line 76 is: $last_line = system($php_bin . $php_args . " " . $main_php . " " . $argv[1]);
after changing the startup line to:
$last_line = system("/usr/bin/php -c ./Main.php");
the first error drops off but still left with:
sh: /php: No such file or directory
it still wont run, however it does run when its issued from a normal shell. (i.e. typing: /usr/bin/php -c ./Main.php)
also i use nohup to make it run in unattended mode, does anybody have a startup string for me that they use to make this happen under linux?
thanks,
End