[Ssh-sftp-perl-users] Command output to local STDOUT
Brought to you by:
dbrobins
From: Heinz P. <hei...@as...> - 2007-05-01 06:08:35
|
Hi, with my $cmd = "testprog.pl"; my $ssh = Net::SSH::Perl->new($ip, debug=>'0', interactive=>'0'); $ssh->login($user, $password); ($stdout , $stderr, $exit) = $ssh->cmd($cmd); print $stdout; I can execute testprog.pl: select STDOUT; $| = 1; print "Programmablauf "; for my $i(0..100) { sleep(1); printf "%3d \%\b\b\b\b\b", $i; } print "Fertig!\n"; on a remote machine. This works fine, but of course I get only the finally output "Programmablauf Fertig!". Is it possible to see the whole output from testprog.pl on my local STDOUT? Thanks |