
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Multiple scp targets?
Romeo Theriault writes:
> On Wed, Nov 10, 2010 at 20:00, Romeo Theriault <romeo.theriault@example.com>wrote:
>
> >
> >> for my $i (@dirs) {
> > my $scpe = Net::SCP::Expect->new;
> > $scpe->login("romeo", "$password");
> > $scpe->scp('/tmp/testfile', "melon:${i}");
> > }
> >
>
> Actually, you can/should move the :
>
> my $scpe = Net::SCP::Expect->new;
>
> $scpe->login("romeo", "$password");
>
>
> out of the for loop.
Perl *can* be secure (the taint mechanism, for example, is pretty
conservative), but I wouldn't trust it with passwords unless there's a
well-audited Password module. I certainly wouldn't trust the Expect
module in that role.
In general I don't trust Perl, I must admit. Plenty of room for
digital steganography in all that line noise!
Home |
Main Index |
Thread Index