in reply to Filehandle not reading

The file handle is only capturing STDOUT, and the stuff that is showing up on the terminal is most likely being printed to STDERR. Adjusting the command line being passed to open might fix it:
open( RSYNC, "rsync -az -e \"ssh -o Batchmode=yes\" --delete-after hos +t:/path/to/dir /path/to/backup 2>&1 |" );
I think the  2>&1 redirection should work on most unix-style shells, but I'm not sure -- test that first.

Replies are listed 'Best First'.
Re^2: Filehandle not reading
by blazar (Canon) on Mar 05, 2007 at 09:22 UTC
    The file handle is only capturing STDOUT, and the stuff that is showing up on the terminal is most likely being printed to STDERR. Adjusting the command line being passed to open might fix it:

    Alternatively, one can use IPC::Open3 to distinguish what's printed to STDOUT and what to STDERR.

Re^2: Filehandle not reading
by GaijinPunch (Pilgrim) on Mar 05, 2007 at 03:17 UTC
    Cheers, graff. That worked like a champ.