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

Re: Hook Script error

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-30 12:06:20 CEST

On May 27, 2006, at 19:14, Merijn Boom wrote:

> Based on the svn-shadow.pl script I wrote an addition to copy files
> over windows shares (I have to add SSH as well). When I run the
> perl script manually it works fine. As soon as I hook it in SVN it
> doesn’t work. Running the Hook (we installed SVN on windows) by the
> command line it gives me the following error:
> Can’t spawn “cmd.exe”: No such file or directory
> Does anyone had this message before and has a solution for this?

All paths in hook scripts should be absolute paths. That's a common
problem when writing hook scripts. Make sure that any time you call,
for example, svn.exe, that you list the full path to svn.exe,
wherever that is on your system. C:\foo\bar\svn.exe or whatever. The
same goes for any other files or scripts or logfiles you're using in
the hook. Always list the absolute path.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 30 12:07:52 2006

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.