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 code.
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 qazw...@gmail.com