RE: Subversion under Windows: Start programs asynchronously in hook script
From: Keith Moore <Keith.Moore_at_securency.com>
Date: Fri, 15 May 2009 10:24:31 +1000
I assume you a using Windows because you made reference to Cmd and Start.
The only way I could get the result you want was to use JScript. I setup the post-commit.bat file to start a JScript file, StartAsync.js. Inside the script I then started another command. Files below.
Post-commit.bat
:batchMain
"%scriptHost%" "%thisFolder%StartAsync.js"
ENDLOCAL
StartAsync.js
winShell.Run(asyncScriptPath);
SomethingDoneAsync.js
All of these files were in the same folder as the post-commit.bat file but they don't need to be. The winShell.Run() command can be any valid command line, it doesn't have to be another script.
Hope this helps.
From: Gregor Bader [mailto:gregor.bader_at_microtronics.at]
Hi!
I tried to implement the start of some programs asynchronous within the hook script,
I tried "start progam" and "cmd /C start program" but nothing works! Every time the commit
In detail:
Someone can help?
best regards,
#####################################################################################
------------------------------------------------------
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.