in reply to Re: How do I run an Infinite loop with a CGI?
in thread How do I run an Infinite loop with a CGI?

Thanx for all the responses, I now have this working using the Proc Daemon method and using system() with the error trapping.

I now have annother question.

Is it possible to now call functions in the running daemon from annother cgi script?

For instance a stop() function.

Thanx
  • Comment on Re: Re: How do I run an Infinite loop with a CGI?

Replies are listed 'Best First'.
Re: Re: Re: How do I run an Infinite loop with a CGI?
by rob_au (Abbot) on Nov 09, 2002 at 00:29 UTC
    Once again there are many ways to do this - A good starting point would be to have a look at the Perl interprocess communication manpage (perlipc). This page provides a good overview of available methods by which processes can communication between one another and call internal functions including signals, named pipes, sockets and SysV IPC.

    It would also be worth having a look through CPAN, in particular the Networking Devices and IPC section, to see what is available for this type of communication.

     

    perl -e 'print+unpack("N",pack("B32","00000000000000000000000111011100")),"\n"'