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

Re: Troubleshoot hook script help

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 12 Mar 2008 11:12:18 -0400

On Wed, Mar 12, 2008 at 11:01 AM, Phil <plabonte_at_gmail.com> wrote:
> I am trying to get an email sent everytime a document is commited.
> I have my port-commit hook set to the apache user and I have chmod'ed it to
> 777 to be sure it can execute.
>
> What I put in the script is basically this
>
> mail -s "commited file" mailemail_at_address.com < message.txt
>
> If I run this command in the terminal window I can an email. When I commit a
> file I do not get an email.
>
> where can I troubleshoot this problem?

Hooks execute with an empty environment, so there's no $PATH to search
for the mail binary. You also can't be certain of what the current
directory is, to find message.txt.

Try specifying the full path to both mail and message.txt.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-12 16:12:45 CET

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.