Hi,

Also, for the record, you need a different Apache config directive to set an 
environment variable
in mod_perl

http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_

That is why SetEnv did not work.

Thanks
Jason

--- Jack Perdue <[EMAIL PROTECTED]> wrote:

> Howdy David,
> 
> Thanks.  You are correct, sir! 
> 
> $ rpm -q httpd mod_perl
> httpd-2.0.51-1.10.legacy
> mod_perl-1.99_12-2
> 
> Switching to CGI and tossing the "export CVS_RSH" 
> from the server startup script works as originally
> advertised/coded (i.e. $ENV{} in Cvs.pm works).
> 
> It is also remarkably faster in retrieving the full text
> using CGI than using mod_perl.  CGI takes about 3 seconds
> here to retrieve a 220 line file via SSH.  mod_perl takes
> about 40!
> 
> Perhaps I should just stick with running in CGI mode for now.
> I went with mod_perl given the:
> 
>   "Using mod_perl provides performance benefits for Perl-based 
>    web applications."
> 
> blurb in the instructions.  In my limited testing, 
> I'm not seeing any "benefits". :)
> 
> I agree... damn shame that "hysterically" CVS has never provided
> a command-line option for CVS_RSH (and therefore probably never will).
> 
> jack
> [EMAIL PROTECTED]
> 
> 
> On Tue, 2006-04-18 at 02:35, David Sitsky wrote:
> > Hi Jack,
> > 
> >  > [...]
> > > So, for now, my workaround is to put:
> > > 
> > >   export CVS_RSH /usr/bin/ssh
> > > 
> > > in /etc/sysconfig/httpd unless someone can
> > > suggest a better solution as to why either
> > > the original code didn't work.
> > 
> > This sounds to me like you have setup Codestriker with apache2 and 
> > mod_perl?  Most people I know are using CVS with pserver, or direct 
> > access, which is why this isn't an issue reported on very often.
> > 
> > If you deploy Codestriker in plain old CGI mode, I suspect the existing 
> > code in Cvs.pm which export CVS_RSH will actually work.  Under mod_perl 
> > however, this probably gets suppressed, particularly under apache2.
> > 
> > Can you try with CGI to see if this works?
> > 
> > > the perl script it is in UNLESS (for some reason)
> > > it was from the environment of the server when
> > > it started.  So, using "SetEnv CVS_RSH /usr/bin/ssh"
> > > in httpd.conf and using "$ENV{'CVS_RSH'}='/usr/bin/ssh';'
> > > in the scripts will affect the running environment
> > > but not the one the open runs in.
> > 
> > I think this caveat is right with apache2/mod_perl.  Its a damn shame 
> > cvs doesn't have a command-line option for specifying what rsh program 
> > to use, like rsync, rather than using an environment variable.
> > 
> > Cheers,
> > David
> > 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Codestriker-user mailing list
> Codestriker-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Codestriker-user mailing list
Codestriker-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/codestriker-user

Reply via email to