[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: is there any web script to execute "svn checkout" via web without accessing via shell?

From: thomas Armstrong <tarmstrong_at_gmail.com>
Date: 2007-03-14 11:20:48 CET

Hi Ryan.

Thank you very much for your answer. I did not check error output :(

I got this message:

---
"Can't open file '/root/.subversion/servers': Permission denied"
---
Ok, but I really execute '/home/www/project/update.sh', and inside it
I check all the env variables, and they are *the same* as when I
execute it via shell:
LOGNAME=root
USER=root
...
I suppose I can fix this issue by chmodding
'/root/.subversion/servers' file, but I don't find any explanation
about it.
Regards,
--t
On 3/14/07, Ryan Schmidt <subversion-2007a@ryandesign.com> wrote:
> On Mar 14, 2007, at 04:54, thomas Armstrong wrote:
>
> > Using SVN version 1.4.2 (r22196) on Linux, I'm trying to create a
> > webpage to do a "svn checkout" of a project from the SVN repository to
> > the web directory (both are on the same machine).
> >
> > I want to execute:
> > svn --username john --password foo co http://svn.mydomain.com/project
> > via web in order to update the public project without accessing server
> > via shell.
> >
> > I created this PHP script (perhaps most of you aren't keen on PHP):
> > -------
> > chdir('/home/www');
> > $command = "svn --username john --password foo co
> > http://svn.mydomain.com/project";
> > echo "<li>$command ...\n";
> > echo "<pre>" . shell_exec($command) . "</pre>\n";
> > echo "<li> ... Executed\n";
> > ----------
> > but doesn't work. It shows "Executed", but checkout wasn't made and
> > standard output is not shown.
>
> How about checking if anything is happening on stderr?
>
> chdir('/home/www');
> $command = "svn --username john --password foo co
> http://svn.mydomain.com/project";
> $command .= ' 2>&1'; // let's see stderr too
> echo "<li>$command ...\n";
> echo "<pre>" . shell_exec($command) . "</pre>\n";
> echo "<li> ... Executed\n";
>
>
> --
>
> To reply to the mailing list, please use your mailer's Reply To All
> function
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 14 11:21:17 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.