Connecting Tech Pros Worldwide Help | Site Map

Ensuring a perl script runs

Member
 
Join Date: Nov 2006
Posts: 46
#1: Nov 7 '06
Hello,

I am the owner of some bots on AOL's instant messenger service (Screenames: TrivDaddy and WordToYourBrain if you want to try them out :) ) I use windows xp media center edition.

My bots are coded in perl and they use the NET-OSCAR package which can found in the perl package manager.

My problem is as follows. My internet router isn't the greatest, and my connection drops every now and then. When this happens, my bots get disconnected and I have to restart them manually from the windows command prompt. The error message I get is:

Can't locate object method "chat_send" via package "Lost connection to chat" (pe
rhaps you forgot to load "Lost connection to chat"?) at bot.pl line 289.

I was wondering, is there any script that could periodically check if "bot.pl" is being executed, and if not it could restart it by itself? Or something of that nature?

Thanks in advance.
Reply