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

RE: sub-script not run from hooks/post-commit

From: Res Pons <pons32_at_hotmail.com>
Date: 2005-12-09 22:56:43 CET

All files ownerships must be consitent, for example, if you're running your
repo under Apache, whatever group you declared must own the files (e.g. cd
/usr/local/repo; sudo chown -R apache:apache . ) also in Sudoers table you
must grant sudo access to sbin/sendmail or the mail utility you're using. or
wherever you have declared this statement to be:

I use perl:

in commit-email.pl file:
-----------------------
my $sendmail = "/usr/sbin/sendmail"; # so in my case sendmail & its path
have sudoer access
---------------------------------

and in post-commit file something like this:

REPOS="$1"
REV="$2"

/usr/bin/perl /local1/svn/hooks/commit-email.pl "$REPOS" "$REV" -s "SVN
Notification: " "user1@dns.com,user2@dns.com, more users"

--------------------------------------------------

----Original Message Follows----
From: Steve Kelem <skelem@elementcxi.com>
To: users@subversion.tigris.org
Subject: sub-script not run from hooks/post-commit
Date: Fri, 09 Dec 2005 12:39:13 -0800
MIME-Version: 1.0
Received: from tigris.org ([64.125.133.100]) by
bay0-mc11-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 9
Dec 2005 12:39:48 -0800
Received: (qmail 28499 invoked by uid 5000); 9 Dec 2005 20:39:18 -0000
Received: (qmail 28470 invoked from network); 9 Dec 2005 20:39:17 -0000
X-Message-Info: JGTYoYF78jEPvSyGTBpBktyEe3M5GnlLKBaKj+y9SiY=
Mailing-List: contact users-help@subversion.tigris.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
list-help: <mailto:users-help@subversion.tigris.org>
list-unsubscribe: <mailto:users-unsubscribe@subversion.tigris.org>
list-post: <mailto:users@subversion.tigris.org>
Delivered-To: mailing list users@subversion.tigris.org
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
Return-Path: users-return-42283-pons32=hotmail.com@subversion.tigris.org
X-OriginalArrivalTime: 09 Dec 2005 20:39:48.0601 (UTC)
FILETIME=[B278B690:01C5FD00]

I'm running subversion 1.2.3 on SuSE linux 10.0.

I have a post-commit script in the hooks directory that calls a sub-script
to send a message when ...

I can run the script by hand. I can run it in /bin/sh with env -
./post-commit repos rev ...
I put log entries in the file before and after the perl system call to the
sub-script.
As root or as "svn", the logs are correct and mail gets sent.

As part of a real commit, the log is correct up to the point where the perl
system call is invoked. At that point, the logs stop and mail does
not get sent. All commands and file names are given with the complete path.

Is there some setting I need to make?

Does anyone have any suggestions on how to debug this?

Thanks,
Steve

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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 9 22:59:21 2005

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.