You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Raju N <ra...@ivycomptech.com> on 2006/06/13 16:45:21 UTC

Problem with post-commit hook in SVN

Hi

 

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!

 

Regards,
Raju N,
Senior Engineer - Unix Systems & Applications,
Corporate-IT  - IVY Comptech (P) Ltd.
Mail:rajun@ivycomptech.com
Yahoo ID:raju_dons
Tel +91 40 55721000 Extn:4611 (7AM to 4PM IST, Monday to Friday).
Mobile:+91-98850-68111.
____________________________________________________________________________
_____________________________________________

The information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this email
in error, please notify the System Manager at admin@ivycomptech.com as soon
as possible. Thank you for your attention to this matter.

 


Re: Problem with post-commit hook in SVN

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 13, 2006, at 18:45, 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?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem with post-commit hook in SVN

Posted by Karsten Hoffrath <ma...@khoffrath.de>.
Have you checked that shellscript.sh is executable by the user under 
which the post-commit hook executes?

Regards,
Karsten

Raju N wrote:
> Hi
> 
>  
> 
> 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!
> 
>  
> 
> Regards,
> Raju N,
> Senior Engineer - Unix Systems & Applications,
> Corporate-IT  - IVY Comptech (P) Ltd.
> Mail:rajun@ivycomptech.com
> Yahoo ID:raju_dons
> Tel +91 40 55721000 Extn:4611 (7AM to 4PM IST, Monday to Friday).
> Mobile:+91-98850-68111.
> _________________________________________________________________________________________________________________________
> 
> The information contained in this email, and any attachments hereto, is 
> strictly confidential and solely intended for use by the individual(s) 
> and/or entity(s) to which it is addressed. If you have received this 
> email in error, please notify the System Manager at 
> admin@ivycomptech.com as soon as possible. Thank you for your attention 
> to this matter.
> 
>  
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org