in reply to Re^2: SSH OUTPUT WITHOUT ENDING OF COMMAND
in thread SSH OUTPUT WITHOUT ENDING OF COMMAND

If you are on a Linux/Unix system, you can use Net::OpenSSH:
use Net::OpenSSH; my $ssh = Net::OpenSSH->new('foo@host'); $ssh->error and die "unable to connect: " . $ssh->error; my $pipe = $ssh->pipe_out("snap.sh"); while(<$pipe>) { print $_; }