LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2007, 04:19 PM   #1
spadesmaster
LQ Newbie
 
Registered: Dec 2001
Posts: 8

Rep: Reputation: 0
Question Wierd CVS checkout problem from CGI perl script


I am trying to create a Intranet Web interface to allow non-technical types to kickoff our build script via a CGI interface.

* CGI interface works.
* Perl script executes and does everything BUT the CVS checkout I request.
* CVS does get execute (/usr/local/cvsroot/CVSROOT/history shows the checkout request)
* CVS only creates an empty working directory (with just the CVS control files). None of the actual project files are in it.
* Same script run from the command-line sudoed as www-data checks out all the files correctly.

Here is the relevant code:
Code:
    `/bin/rm -rf $dirSrc/dqcode`;
    print "Normal CVS checkout of dqcode...\n";
    $syscmd = "cd $dirSrc; pwd; /usr/bin/cvs -d $dirCvs checkout $strProject";
    print "Executing $syscmd\n";  
    `$syscmd`;
This outputs this when run as CGI-BIN:

Quote:
Normal CVS checkout of dqcode...
Executing cd /share/Builds/Src; pwd; /usr/bin/cvs -d /usr/local/cvsroot checkout dqcode
CVS checkout of /share/Builds/Src/dqcode failed!
And when run from the command-line it outputs:
Quote:
Normal CVS checkout of dqcode...
Executing cd /share/Builds/Src; pwd; /usr/bin/cvs -d /usr/local/cvsroot checkout
dqcode
cvs checkout: Updating dqcode
cvs checkout: Updating dqcode/Autorun
...
I suspected a current directory or permission problem, but the sudo as www-data test and pwd check seem to verify that isn't it. Any other ideas? Any CVS error log somewhere other than the history file? I know CVS is the one failing, but cannot seem to get any debug output (the -v parameter didn't output anything either).

Blitzkrieg ('tanks in advance),
Christopher
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with lineseparator when doing cvs checkout. noware Linux - Software 3 06-02-2006 03:31 AM
CVS: checkout and module name pacionet Linux - Software 1 05-11-2006 09:19 AM
PERL: cgi script copy problem from server to another <db> Programming 2 04-16-2006 09:14 PM
cvs checkout on slackware 8.1 rolandp Linux - Software 1 06-30-2005 12:20 AM
wierd cgi problem ruwach Linux - Networking 4 06-04-2005 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration