in reply to Print log at runtime instead of dumping all at once later

Quite unsurprisingly (I hope), capture2 captures the output from the remote side. If you want to let the remote output go directly to stdout and stderr, unbuffered, just use the system method:
sub exec_wrapper { $ssh->system("~/release/$wrapper"); $ssh->die_on_error("execution of ~/release/$wrapper failed"); }

Replies are listed 'Best First'.
Re^2: Print log at runtime instead of dumping all at once later
by Technext (Acolyte) on Jul 02, 2015 at 17:16 UTC
    This is what i was looking for. Thanks a lot @salva! :)