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

Re: Problem with post-commit hook in SVN

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-13 22:06:25 CEST

On Jun 13, 2006, at 19:15, Raju N wrote:

>>> I am facing problems with post-commit hook script in SVN. I have
>>> a shell script at a location and is readable by apache. The
>>> commit-email.pl script works just fine, but the shell script is not
>>> working. I have added the following line to the post-commit hook
>>> /bin/sh <svn_reposiotry/hooks/shellscript.sh>
>>> If I execute the same command from command line it works. But
>>> when I place the same command with absolute path in post-
>>> commit hook script it doesn't.
>>> I am going wrong some where? Or do I have to make some
>>> more settings in hook script to make my shell script work?
>>> Please suggest!
>> Obviously something's going wrong. Are you using non-absolute
>> paths within shellscript.sh? Can you show us the contents of
>> shellscript.sh?
> The contents of the shell script
> #!/bin/bash
> /usr/bin/rsync -e ssh -avz <svn_repository> root@<destination server
> address>:<svn_repository>
> I am using absolute paths in shell script as well. Please suggest
> Regards,
> Raju N,

Do you maybe have to say:

/usr/bin/rsync -e /usr/bin/ssh .......


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 13 22:08:43 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.