On Mon, 5 Dec 2005, Johannes Schindelin wrote:
Hi,
On Mon, 5 Dec 2005, Daniel Barkalow wrote:
quoted
I think it's an environment thing of some sort, most likely, but it can't
be the user; nothing's setuid and I'm only one user.
Can you insert "env > /tmp/env.$$.out", execute both without and with ssh,
and compare?
Actually, "ls -l /proc/$$/fd" shows that stdin and stdout are sockets with
ssh, pipes with local, and ttys when just running the script.
The hooks probably ought to be run with something different for
stdin/stdout than the connection to the source of the data. /dev/null,
maybe? Or a log file? Maybe dup stderr, which still seems to be going to
the pusher's terminal?
-Daniel
*This .sig left intentionally blank*