User Control Panel
Advertisements

HELP US, HELP YOU!

Emergency restart watchdog

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Feb 04, 2005 1:21 pm    Post subject: Reply with quote

sometimes my bot crashes, this i think is due to $self->sendleave(); being used, I have spoken to other bot makers who have disabled it for the same reason. I do not wish to disabled it however.

What I think would be good is a watchdog app that ensures the bot is running at all times, restarting it if it crashes, maybe it could run in the system tray or something.

opinions/ideas?
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Feb 04, 2005 1:38 pm    Post subject: Reply with quote

QUOTE(draget @ Feb 4 2005, 08:21 AM)
sometimes my bot crashes, this i think is due to $self->sendleave(); being used, I have spoken to other bot makers who have disabled it for the same reason. I do not wish to disabled it however.

What I think would be good is a watchdog app that ensures the bot is running at all times, restarting it if it crashes, maybe it could run in the system tray or something.

opinions/ideas?

What I do with leaving convo's is eval it.

Code:
eval ("\$self->sendleave;");


Because the bot will leave the convo no matter what you do, just for some reason the MSN module will give a fatal error after the fact. But eval doesn't allow fatal errors to kill the entire bot.

That's a lot easier to do than to program another bot to watch your bot.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Feb 04, 2005 3:13 pm    Post subject: Reply with quote

Interesting, thanks cer!
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Fri Feb 04, 2005 7:04 pm    Post subject: Reply with quote

Me or Mojave will have a look at fixing this in the next version
_________________
[ matt ]
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Fri Feb 04, 2005 7:27 pm    Post subject: Reply with quote

You could also run the bot in a batch file and have it just restart if it crashes.
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Feb 04, 2005 8:02 pm    Post subject: Reply with quote

QUOTE(alienz @ Feb 4 2005, 02:27 PM)
You could also run the bot in a batch file and have it just restart if it crashes.

That's the other thing I was going to suggest (but didn't have time to).

Make the source of the batch file be this:

Quote:
@echo off
:Loop
perl bot.pl
goto Loop


Change bot.pl to the name of the bot's file.

So then you run the bot with the batch file, and if the bot ever crashes due to a fatal error, it will restart itself (eliminating any need for a watch bot for any purposes).

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Sat Feb 05, 2005 2:40 am    Post subject: Reply with quote

The batch loopy bit was kind of what i meant as watch dog, thanks guys!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group