RE: Subversion under Windows: Start programs asynchronously in hook script
From: Brian Erickson <erickson_at_bauercontrols.com>
Date: Fri, 15 May 2009 16:36:54 -0400
If you don't want to use JScript (it's probably the better solution) try
________________________________
From: Keith Moore [mailto:Keith.Moore_at_securency.com]
I assume you a using Windows because you made reference to Cmd
The only way I could get the result you want was to use JScript.
Post-commit.bat
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
:batchMain
SET thisFolder=%~dp0
SET scriptHost=%SystemRoot%\System32\wscript.exe
"%scriptHost%" "%thisFolder%StartAsync.js"
GOTO :EOF
ENDLOCAL
StartAsync.js
var winShell = new ActiveXObject("WScript.Shell");
var fileSystem = new
var scriptPath = WScript.ScriptFullName;
var asyncScriptPath =
winShell.Run(asyncScriptPath);
SomethingDoneAsync.js
WScript.Sleep(30000); // Sleep for 30 seconds.
All of these files were in the same folder as the
Hope this helps.
Keith.
From: Gregor Bader [mailto:gregor.bader_at_microtronics.at]
Hi!
I tried to implement the start of some programs asynchronous
so the script finished (and the commit is finshed) before the
I tried "start progam" and "cmd /C start program" but nothing
is only finished after the program finishes.
In detail:
We are running Subversion & Redmine (www.redmine.org) and use
to update with each commit. This command can take a long time
Someone can help?
best regards,
Gregor
________________________________
Attention:
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.