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

RE: hook-script doesn't run in background

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Wed, 21 Apr 2010 10:13:03 +0100

> I need to run an ant script after a commit, so I used a
> post-commit script for that. However, even if I put the ant
> call into the background and redirect stdout and stderr, it
> still returns only after the ant call is done. I found an old
> discussion about this
> (http://svn.haxx.se/dev/archive-2006-01/0375.shtml), is there
> still no workaround or fix?
> This is the relevant part of the script (commenting it out
> fastens it):
>
> ant all -f MDM-Leitfaden/ant_scripts/mdm-leitfaden.xml >
> /tmp/dita.log 2>&1
>

It looks like your post-commit hooks is a ksh, so have you tried adding & at the end? Like

ant all -f MDM-Leitfaden/ant_scripts/mdm-leitfaden.xml > /tmp/dita.log 2>&1 &

G

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
Received on 2010-04-21 11:13: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.