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

Re: Problem with scripted SVN output

From: Maarten van der Veen <mjvdveen_at_ai.rug.nl>
Date: 2005-05-04 09:56:39 CEST

I'm trying to trace the problem back in svn. I extensively tested the
program with other executables and only svn doesn't return the values.

So I looked in the svn repository and came as close as this:
http://svn.collab.net/viewcvs/svn/trunk/subversion/libsvn_subr/cmdline.c?view=markup

My C knowledge is quite limited, I see that messages are written to
STDOUT. Can anyone tell me what this means? I'm trying to read into the
problem and I see that output can be redirected to the active window
(browser?) with 'command > /dev/tty'. Is this what I need to change to
the code to make it work for me?

I read about other people using the exec() functions in php to access
the svn executables, so it doesn't seem really necessary to me. It
sounds as some local problem, which is expressed by svn.

Any Ideas?

On Wed, 2005-05-04 at 17:42 +1200, Maarten van der Veen wrote:
> By the way, I'm using svn version 1.2.0 RC2 on all servers.
>
> Is there anyone who can help me with this one? I'm completely in the
> dark here.
>
> On Tue, 2005-05-03 at 09:53 +1200, Maarten van der Veen wrote:
> > I'm trying to build a PHP environment for updating working copy's.
> >
> > I'm using the exec($command, $output) PHP function to send command's to
> > the server and get the $output back which I use in php to check if there
> > is a new revision.. etc.
> >
> > I'm experiencing the following problem:
> > In FEDORA 3, my local testing environment, when I execute a php file:
> > <?
> > exec('/usr/local/bin/svn log --limit 1 /path/to/directory', $output);
> > print_r($output);
> > ?>
> >
> > I get the first log entry neatly in an array back and printed in the
> > browser.
> >
> > When I execute this same script in the console, with the PHP binary, I
> > get the same output.
> >
> > So far, so good.
> >
> >
> >
> >
> > But, on Slackware Slackware 9.1.0 and 8.1.0, my remote testing
> > environments, when I execute this php file in the browser I get NO
> > output back from svn.
> > When I run this file on this remote server in the console, I DO get back
> > the proper output. So it doesn't seem to be a PHP configuration problem.
> >
> >
> >
> >
> > When I test the following file in the browser on the Slackware machines:
> > <?
> > exec('/bin/date', $output);
> > print_r($output);
> > ?>
> >
> > I DO get output in both the browser and the console.
> >
> >
> >
> > So, it seems to me that there is a specific thing with SVN, why it
> > doesn't give me any feedback to the TTY in which it is executed on the
> > slackware machines.
> >
> >
> > Does anyone have a clue what is going on here?
> >
> > Maarten
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 09:58:31 2005

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