Hello!
I ran bebot on windows w/o any probs untill i got a new server that has FreeBSD as OS, and it was really tricky to set up and start the bot there
but finally i managed to do it...
There's one lil problem though. On windows when bot LD's it restarts automatically.. And on *nix it just says "The bot is restarting" and exit program.
i found a solution for that, but i believe there's a better way to solve it.
i've put painbot.sh in rc.d:
#!/bin/sh
./etc/rc.subr
name="painbot"
start_cmd="${name}_start"
stop_cmd=":"
painbot_start()
{
echo "Starting painbot..."
counter=0
while [ $counter -lt 20 ];
do
let counter=counter+1
cd /painbot
/usr/local/bin/php /painbot/Main.php > /dev/null
echo Login attempt $counter finished.
done
}
load_rc_config $name
run_rc_command "$1"
that does the thing.. but its limited, and not correct way to do it.. also if i put $ in the end to hide the process from user, it just starts 20 bots in the same time..
Please help the noob *nix user!
thanks!