Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Multiple scp targets?





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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links