collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Running Bebot on Remot Host: Logistics  (Read 2230 times)

0 Members and 2 Guests are viewing this topic.

Offline Mephistobane

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Running Bebot on Remot Host: Logistics
« on: July 03, 2006, 07:16:11 am »
ok so, i want to run bebot on a remote host. they are a company, not some other person's PC. it runs mysql v4.3.x(pretty sure),not sure which version php,and on Linux. the only way to reach the bot will be through SSH,by admins(not me) who i'll give the bot.rar to.

ok so, how do i get the remote host to update Alreadythere's whois module(i have a .bat to run it, which can be activated by clicking on it,but we won't be able to do that while it's hosted remotely.(how to activate through SSH remotely?)

second, IF the bot *does* crash due to an error, how can an admin with SSH access restart the bot remotely?(i.e. no clicking the start.bat)

i've got the config files under control, i.e. new mysql dbase and username,password,"localhost",etc...i think  ;)

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: Running Bebot on Remot Host: Logistics
« Reply #1 on: July 03, 2006, 02:00:24 pm »
ok so, i want to run bebot on a remote host. they are a company, not some other person's PC. it runs mysql v4.3.x(pretty sure),not sure which version php,and on Linux. the only way to reach the bot will be through SSH,by admins(not me) who i'll give the bot.rar to.

If you can find a host crazy enough to run the bot for ya, that is. Or convince the host you need SSH access and need only one active job.

ok so, how do i get the remote host to update Alreadythere's whois module(i have a .bat to run it, which can be activated by clicking on it,but we won't be able to do that while it's hosted remotely.(how to activate through SSH remotely?)

.bat in Linux? .bat is DOS my dear friend, you don't use .bat. The Whois module will be automaticly updated afaik, just like the itemslist.

If you have SSH access, you can start the bot in a screen session:
Code: [Select]
$ screen
$ php start.php

second, IF the bot *does* crash due to an error, how can an admin with SSH access restart the bot remotely?(i.e. no clicking the start.bat)

If the bot encounters an error, in for example a module, it keeps looping and starting and starting over. If you don't have SSH access, you can't see which and need to guess which it could be (probably a module you found somewhere) and rename it through ftp: putting a _ in front of it.
If the bots disconnects or loses the socket cause you do a normal logon to that character, you (or the admin) has to SSH into your account again and terminate and start the bot again.


Personally, i don't think any company is gonna be so crazy to do all that for ya. So i would target at a host where you have SSH access and can run a background process.

Offcourse i could say you could write a php file which will give you complete shell access, which is possible for sure, but well :)

Offline Mephistobane

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: Running Bebot on Remot Host: Logistics
« Reply #2 on: July 04, 2006, 12:16:47 am »
so, the Whois module will automatically use the whoisupdate.php to update itself on a Linux system? I have Windows only so i can't try this..but it doesn't make much sense as i didnt find a "autorun" chunk of code in either .php,but maybe im blind  ::).

and also,how can i setup the bot to run as a background process(or the admin) through ssh? and there's already a bunch of stuff our host does for us, i'm sure the bot wouldn't be too big an addition to what they do for us :)...

i do believe our host is XeGaming :P

Offline Mephistobane

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: Running Bebot on Remot Host: Logistics
« Reply #3 on: July 04, 2006, 03:27:36 am »
Apache version     1.3.34 (Unix)     
     MySQL version    4.0.25-standard-log    
     PostgreSQL version    7.4.8    
     PHP version    4.4.1    
     PHP info    Click to view    
     PERL version    5.8.7    
     Operating system    Linux    
     Kernel version    2.6.9-22.0.1.ELsmp    
     Machine Type    i686

    i went and got the exact server info, and there it is. I'd like to know if v.2.5 is compatible with this setup.
    then also i'd like to know if the modules i've put in are compatible aswell (admin wants this to go as smoothly as possible, there's a bunch of other stuff this server runs and the bot going wacky wouldn't be good):

(guild bot)
apf - standard(? does glara's mod come standard now?)
about - standard
alienattack - standard
autoinv - standard
automsg - standard
bid - standard
calc - modified(reference)
countdown - standard
guildrelay - standard
is - standard
items - modified(to use Alreadythere's Whois Cache)
level - standard
logon - standard
massmsg - standard
members - standard
news - current SVN
oe - standard
raffle - standard
raidtime - standard
rally - standard
relay - standard
roll - standard
rooster - standard
server - standard
shutdown - standard
target - standard
time - standard
quotes - (reference)
privgroup - standard
history - standard
symbs - (reference)
bioclump - (reference)
towerattack - by Xenixa(reference)
teams - (reference)
lca - (reference)
whois - Alreadythere's Whois Cache
lastseen - (reference)

if there's a way for me to find out myself, don't hesitate to point me in the right direction please :) i just don't have exp with different verisons of mysql/php/OSs, so i wouldn't know where to start

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Running Bebot on Remot Host: Logistics
« Reply #4 on: July 04, 2006, 05:50:36 pm »
the whois table won't update itself. The whoisupdate.php needs to be added to cron.

In the ssh type crontab -e which will take you to the cron edit. Add in:

10 14 * * * /path/to/whoisupdate.php >> /dev/null

Which will run the file at 14:10 every day. Change the time to whatever you want.
Eternalist
General of The Syndicate

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 120
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal