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: Wed, 10 Nov 2010 20:12:23 +0900
- From: Romeo Theriault <romeo.theriault@example.com>
- Subject: Re: [tlug] Multiple scp targets?
- References: <4CDA6654.60102@example.com> <AANLkTimUafw8W-5fQb_gk10fh4a5iakhbRpyvmjyGRzd@example.com>
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.
--
Romeo Theriault
- Follow-Ups:
- Re: [tlug] Multiple scp targets?
- From: Stephen J. Turnbull
- References:
- [tlug] Multiple scp targets?
- From: Darren Cook
- Re: [tlug] Multiple scp targets?
- From: Romeo Theriault
Home | Main Index | Thread Index
- Prev by Date: [tlug] Multiple scp targets?
- Next by Date: Re: [tlug] [announcement] 2010-11-13 Technical meeting.
- Previous by thread: Re: [tlug] Multiple scp targets?
- Next by thread: Re: [tlug] Multiple scp targets?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links