Re: STDOUT and Hook Scripts
On 3/11/2010 12:56 PM, Stein Somers wrote:
> The post-commit hook starts a single process, and eats its STDOUT.
> But you can make that single process into whatever you want. If you hook
> script is for instance:
> perl watch-file.pl | perl notify.pl
> then your hook consists of a shell process and two perl processors
> working together. SVN doesn't know anything about the STDOUT produced by
> watch-file.pl. It still eats the STDOUT that notify.pl produces -
> someone has to. The commit is finished when notify.pl is done (more or
Likewise, perl is just as good as the shell at starting programs on
pipes and manipulating file descriptors. One program could read from or
write to a pipe within your perl code.
Received on 2010-03-11 20:43:56 CET
This is an archived mail posted to the Subversion Users