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

RE: Re: Hook Script error

From: Merijn Boom <merijn.boom_at_eurorscg.nl>
Date: 2006-05-30 12:48:30 CEST

Hi Ryan,

Thanks for the tip. The paths where absolute but I discovered that the
Service which runs SVN was not installed under a specific user. By doing
this (and providing that user sufficient rights) this issue was solved,

Merijn

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2006q2@ryandesign.com]
Sent: dinsdag 30 mei 2006 12:06
To: Merijn Boom
Cc: users@subversion.tigris.org
Subject: Re: Hook Script error

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

---------------------------------------------------------------------
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:49:52 2006

This is an archived mail posted to the Subversion Users mailing list.