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

Re: Running Hook script on Windows

From: Eric Lemes <ericlemes_at_gmail.com>
Date: 2006-05-10 00:29:00 CEST

Hello Daniel,

I found the same trouble in a perl script. Windows has some strange or
stupid (I don't know exactly hall to call it) variables that svn removes
from the path when the script executes. After I map the following variables,
my perl script (SVN Notify) run correctly under windows. The variables was:

- PATH (obvious)
- OS=Windows_NT (perl goes crazy if this variable is not here).
- SystemRoot=C:\WINDOWS (I don't know why, but Net::SMTP don't send the mail
if this var isn't there).

Hope this helps.

[]'s

Eric Lemes

On 5/9/06, Nathan Kidd <nathan-svn@spicycrypto.ca> wrote:
>
> Daniell, Casey B wrote:
> > I still am not seeing a file, c:\logfile.txt, created. Its like this
> > script isn't even being run.
> >
> > I have it named post-commit.bat and, now, post-commit2.bat both located
> > in the repositories hooks directory.
> >
> > Do I just need to place the files there and they will automatically get
> > called? Or do I need to tell SVN to find them somehow?
>
> If files with the right names exist they will run automatically.
>
> My only other thought is your server process (svnserve.exe or
> apache.exe) doesn't have enough rights access and/or create files, etc.
>
> Try making the service run as a different user with more permissions.
>
> -Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Received on Wed May 10 00:31:53 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.