in reply to OpenSSH capture perl-command

The command argument to Net::OpenSSH methods must be a system command (e.g. ls, grep, etc.). You can not pass perl code there.

In your particular case, you can use SFTP to query the remote filesystem:

use Data::Dumper; my $sftp = $ssh->sftp; my $stat = $sftp->stat($remote_file); print Dumper($stat), "\n";

Replies are listed 'Best First'.
Re^2: OpenSSH capture perl-command
by Alasharin (Initiate) on Mar 17, 2014 at 10:27 UTC

    ....Thanks...
    Regards, Armin </>