in reply to CGI - Batch command

Modify %ENV in the Perl script to set environment variables that will be seen in processes that it spawns.

Replies are listed 'Best First'.
Re: Re: CGI - Batch command
by pg (Canon) on Oct 13, 2003 at 05:36 UTC

    This solution would suffer, if multiple requests come in at the same time (assume the process runs on server). Well, you can carefully make the processes running in sequence, but this is not always desirable.

    Update:

    This post is actually not about tilly's reply, as his reply obviously provided a correct answer to the direct question itself, so don't mis-interprete this post.

      I don't understand what you are trying to refer to.

      The question was how to set environment variables when the Perl script was not being wrapped by a .bat file that set them. I answered that question.

      Larger questions of how to handle multiple requests at a time I can't answer without knowing a lot more about the environment that he is talking about.

      This post is actually not about tilly's reply, as his reply obviously provided a correct answer to the direct question itself, so don't mis-interprete this post.
      Then why did you reply to tilly's post?