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

Re: Probably a simple problem with hook script

From: Dan Shookowsky <dshookowsky_at_gmail.com>
Date: 2006-07-11 15:12:24 CEST

On 7/10/06, Gavin Lambert <gavinl@compacsort.com> wrote:
> Quoth Dan Shookowsky <mailto:dshookowsky@gmail.com>:
> > I'm writing a hook script to update a working copy on
> > post-commit. The target platforms are Windows for both the
> > apache/subversion server and for the working copy location.
> > The working copy is located on a separate box from the
> > apache/subversion server. The issue right now is that the
> > hook executes but fails with no indication of what happened.
> [...]
> > The actual command line looks like this:
> > svn update "\\UNCPathToWC" --username "domain\user"
> > --password "password" > E:\logs\post-commit.log
>
> If it's writing to stderr rather than stdout then you'd need to redirect
> that as well. I think you put 2>&1 or 2&>1 (I forget which) at the end
> of the command line to do that.
>
>

Thanks for the tip...I was getting used to all the other shortcomings
of the windows command shell and didn't expect stderr redirection to
be in there...this should help.

BTW it's 2>&1

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 11 15:13:48 2006

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.