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

Re: Post-Commit help

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Wed, 6 Aug 2008 06:02:25 +0400

2008/8/5 George Stein <george.stein_at_go4more.de>:
>
>> Brian Erickson wrote:
>>
>> My pre commit hook (pre-commit.bat)
>> start command nul /c d:\temp\test\hooks\newp.bat
>>
>> Contents of newp.bat
>> ping -n 1 -w 30000 1.1.1.1 (this is essentially a 30 second delay)
>>
>> NOTE:
>> 1) It's important that you run command (not cmd).
>> 2) Command is limited to the old 8.3 DOS notation for files. If you
>> try to execute a batch file or program that has a long file name you'll
>> get a 'bad command for file name' error.
>> 3) Command is still around with Vista but I didn't test there
>>

I do not understand this suggestion regarding command.com. The
cmd.exe should work just fine.

  start cmd.exe /c d:\temp\test\hooks\newp.bat

And even simplier

  start /c d:\temp\test\hooks\newp.bat

What is the purpose of nul argument (aka windows version of /dev/null)
in your example of calling the bat file? Are you redirecting some
input or output to/from there?

I also do not like pinging someone's 1.1.1.1 Use your own 127.0.0.1
for that purpose.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-06 04:02:57 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.