my $chan = $ssh2->channel(); $chan->blocking(1); $chan->exec("cat myfile");