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";
In reply to Re: OpenSSH capture perl-command
by salva
in thread OpenSSH capture perl-command
by Alasharin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |