Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Multiple scp targets?
- Date: Thu, 11 Nov 2010 11:12:42 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Multiple scp targets?
- References: <4CDA6654.60102@example.com> <AANLkTimUafw8W-5fQb_gk10fh4a5iakhbRpyvmjyGRzd@example.com> <AANLkTinfJ7sju4e_QfNRecci5OvHhrrbf_cQ6fctH0Yx@example.com>
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!
- References:
- [tlug] Multiple scp targets?
- From: Darren Cook
- Re: [tlug] Multiple scp targets?
- From: Romeo Theriault
- Re: [tlug] Multiple scp targets?
- From: Romeo Theriault
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Multiple scp targets?
- Next by Date: Re: [tlug] Multiple scp targets?
- Previous by thread: Re: [tlug] Multiple scp targets?
- Next by thread: [tlug] Worth coming to Japan before getting a job?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links