Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl Server Side CGI Scripting (2)

problems getting output from `command` in CGI

         

chahn

6:18 pm on Nov 18, 2005 (gmt 0)

10+ Year Member




Hello,

An older thread with this title was closed, so I opened a new one.

I am also trying to run a CVS command within a perl CGI
script. I am using backticks and am not getting output.

The previous thread closed when the poster was reminded
that the user the CGI was running as lack permissions
to execute the desired command.

....but I am using $EVN{CVSROOT}, setting it to a fully
qualified value, including a sufficiently capable user
and including that user's password (so no "login" is
required)

I am using CGI.pm and running it from the command line
show the desired output, but running from the webserver
show no output at all.

Q: Shouldn't properly setting CVSROOT in %ENV circumvent the issues of the web-server-user?

TIA!

chahn

7:22 pm on Nov 18, 2005 (gmt 0)

10+ Year Member




I knew it would work: expose my stupidity, publicly,
and the answer would occur to me.

My underlying script created a temp dir to work in.

This was failing, and not the CVS part.

Thanks anyway. Take care.

coopster

2:56 pm on Nov 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I knew it would work: expose my stupidity, publicly,
and the answer would occur to me.

LOL! We've all been there so don't be so hard on yourself. If I had a penny for every time I ...

Welcome to WebmasterWorld, chahn.