in reply to Re: IRC bot in perl
in thread IRC bot in perl

Well, as a cgi, I was thinking maybe use another cgi to start it using sytem calls, then return html code for a page saying it had been started right.. on error deleting the file or outputing the error codes through redirection of the ERR handle or some such.. mabey on die starting itself again; I still have allot to learn, But at least I admit my lack of perl wisdom and seek to learn more - Thank you for the links to the pm's, there were unknown to me and will provide a interesting study ;)

Replies are listed 'Best First'.
Re: Re: Re: IRC bot in perl
by gellyfish (Monsignor) on Mar 10, 2002 at 10:58 UTC

    I don't think this is so much of a lack of perl wisdom but is more to do with the way all the rest of it works. To do what you want you will need to fork() a child process - there are plenty of nodes like Re: Re: sending bulk emails in a specified time that explain how to do this in a CGI context, however the real issue is that on any properly administered web server the adminstrators are likely to notice your long running process and terminate it without mercy, some free web hosts even go as far as to disable things like fork() altogether as it is a reasonably dangerous thing to allow unknow users to do.

    /J\