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:59:20 UTC

FW: Problem with post-commitscript 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: FW: Problem with post-commitscript in SVN

Posted by Jose Thomas <jo...@gmail.com>.
> 
> 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!
>

Please 've a look at the Hook Scripts section from the Book. Have a
look at the tip.
http://svnbook.red-bean.com/en/1.2/svn.reposadmin.create.html#svn.reposadmin.create.hooks

HTH
Jose

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