#!/usr/local/bin/perl -w
print "Content-type: text/html\n\n";
$ret = `cvs -d /public/directory..../cvs/ export -r HEAD analysis`;
print "$ret<br>";
thanks
system("cvs -d /public/directory..../cvs/ export -r HEAD analysis");
I don't think that's the problem. The perl.com pages say:
The return value [ of system ] is the exit status of the program as returned by the wait() call. To get the actual exit value divide by 256. See also exec. This is NOT what you want to use to capture the output from a command, for that you should use merely backticks or qx//, as described in `STRING`.
If the Perl script runs fine in Terminal but not in CGI, I'd check whether the "CGI user" has access to read the directory in question.
Edit: Added link to Perl.com page