how to parse password during the find command in linux? how to parse password during the find command in linux? unix unix

how to parse password during the find command in linux?


use Net::SFTP::Foreign.

use Net::SFTP::Foreign;my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $password, autodie => 1);my $ls = $sftp->ls($dir);use Data::Dumper;print Dumper($ls);


It wont work that way in perl. Try something like this:

open(IN, "$cmd|")

where $cmd is the command that works for you from the command line.