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

RE: Re: Run processes in background with post-commit hook on Windows

From: Brian Erickson <erickson_at_BAUERCONTROLS.com>
Date: Thu, 12 Jun 2008 11:27:13 -0400

I'm not quite sure I understand the problem...I'm not a Unix persion but
have been working with batch files forever (at least it feels like
Is it true that: when you use the start command, the post commit hook is
still waiting for the backgound process to finish? Furthermore the
reason for the wait is that Subversion file descriptors (which the
background process doesn't know or care about) are still open. Is that
If that's so, the background command shell must have inherited them from
the commit hook. Have you tried using the /I option on the start
I do know that the > and >> sytnax, in Windows, do not make anything run
in the background.


From: Adrien [mailto:hannibalbundy_at_gmail.com]
Sent: Thursday, June 12, 2008 10:44 AM
To: Chris Lambrou
Cc: users_at_subversion.tigris.org
Subject: Re: Run processes in background with post-commit hook on

Thanks for your reply, but actually I 've already used this command. My
batch file works fine when I run it mannually, but svn wait that all the
file descriptors the post-commit hook opens have been closed.

In other words "start" is the equivalent of "&" in the unix world, and
I'm looking for the equivalent of ">> /dev/null 2>&1" or anyother trick
wich allows svn to validate commit once the post-commit hook is
finished, and not once all the processes ran by it are finished.

This issue has already been discussed (see
http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=53426 and
http://svn.haxx.se/users/archive-2006-07/0421.shtml) but no solution has
been proposed yet.

2008/6/12 Chris Lambrou <Chris.Lambrou_at_grantadesign.com>:

        Have a look at the start command. You can use it to spawn a
separate process from a batch file, in a non-blocking manner. This
allows your script to terminate, whilst leaving the spawned process


        From: Adrien [mailto:hannibalbundy_at_gmail.com]
        Sent: 12 June 2008 13:35
        To: users_at_subversion.tigris.org
        Subject: Run processes in background with post-commit hook on
        As said in the object, I've got some difficulties on Windows to
run command in background with the post-commit hook. Indeed there is a
solution on Unix with the redirection of stdout and stderr (in adding >>
/dev/null 2>&1 at the command's end), but is there any equivalent on
windows ? Because adding 1> NUL 2>&1 is unfortunately not enough.
        Thanks in advance.
Received on 2008-06-12 17:27:39 CEST

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.