swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with a CGI script


From: Benedikt Stefansson
Subject: Re: Problems with a CGI script
Date: Tue, 28 Jul 1998 18:50:09 -0700

Hi John,

> Perhaps a better way to do things is with Apache 'SetEnv' directives. In
> this way you can send along any env vars of your choosing along to CGI
> scripts. You can place these directives in one of the conf files or in a
> htaccess file.

I had in fact looked for something like SetEnv in the Apache configure scripts, 
but
they aren't in there as a default or dummy. Guess I should've RTFM! However, 
since
the trick to set $HOME in a subshell works, it might actually be a more portable
solution - doesn't depend on setting things like that globally for the server.

On another note - but regarding this particular problem in Swarm - I wonder if 
Marcus
or Alex can explain why we even have the kernel / archive object look for the 
users
home directory when Swarm is executing in batchmode? It seems like a bad idea
overall, since it would seem to decrease portability -  i.e. dependency on Unix 
shell
type environments etc. Wouldn't it be a good idea to switch around this code 
block
when the batchmode flag is set? (I'm assuming that only the archiver depends on
knowing where the users home directory is).

Regards,
-Benedikt

--
----------------
Benedikt Stefansson                 address@hidden
Department of Economics, UCLA       Fax. (310) 825-9528
Los Angeles, CA 90095-1477          Tel. (310) 825-1777



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]