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

STDOUT and Hook Scripts

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 10 Mar 2010 08:30:03 -0500

I know that when you run a hook, the STDOUT is not returned to the
user, and STDERR is only returned if that hook returns a non-zero exit

However, I'm writing a post-commit hook, and I'd like to know if it is
possible to pipe STDOUT to another process as part of the hook script.
For example, in a post-commit hook, I have a Perl script that collects
watch information, and I'd like to pipe the output of that script to
another script that will do the actual notification. Can I do the
following in my post-commit script:

watch-file.pl | notify.pl

Is that possible?

David Weintraub
Received on 2010-03-10 14:30:32 CET

This is an archived mail posted to the Subversion Users mailing list.