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

Re: perl backticks do not capture output (post-commit hook)

From: Oliver Menge <om_at_joe-list.de>
Date: 2006-01-18 00:34:24 CET

Allan,

thanks for bringing me on the right track!

> Oliver Menge wrote:
> > !-------------------------------------------------------------------------
> > ! C:\>type c:\joe\svnrepositories\joe\hooks\post-commit.cmd
> > ! c:\perl\bin\perl -Ic:\joe\perlscripts c:\joe\perlscripts\post-commit.pl %1 %2
> > ! C:\>
> > ! --------------------------------------------------------------------------

Allen Juul wrote:

> it might be the environment is gone in the script.
>
> what happens if you chdir to the executing dir:
>
> # in your bat/cmd file:
> c:
> cd c:\joe\perlscripts
> start c:\perl\bin\perl.exe c:\joe\perlscripts\post-commit.pl %1 %2

Not the working dir but the usage of 'start' (whatever meaning that
has in Windows) makes the difference:

- without 'start' -> cannot capture svnlook output.
- with 'start' -> captures perfectly

Thanks a lot, before I asked the list I had spent many hours on that!

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 18 01:57:44 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.