in reply to CGI for the server

Your question is rather confused for me and I don't understand it fully. Keep in mind that CGI scripts already work ON the server, so what?

If you want something that runs on the server without the need of a trigger from a webserver, then you don't need CGI for this, just create your scripts and make them run on the server itself, e.g. using the crontab or doing the scheduling on your own with sleep and/or alarm.

Last thing that comes to my mind is that you could want to always execute something for each request that arrives to the web server, but without the explicit use of CGI. In this case, you'd probably study the documentation for the webserver, and try to see if something about Apache in CPAN can help you.

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: CGI for the server
by Anonymous Monk on Jun 03, 2005 at 22:17 UTC
    Hi

    Yes, I meant I want my script to load any time my domain is called WITHOUT forcefeeding CGI calls into every single one of my pages. I want to track everything without any trigger, as you said.

    You said sleep. Are you saying that all the scripts like this are actually running infinitely rather than just activated if any file on the server was called?

      No, the sleep was intended for cases where you actually were looking for some daemon application unrelated to the web server.

      Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

      Don't fool yourself.