in reply to Short example using IPC::Open2 or IPC::Open3
(Update: see below for a solution pertinent to L~R's actual needs)chomp (my @files = `ssh somehost ls foo`); for (@files) { my $qf = quotemeta; system "scp somehost:foo/$qf ."; system "ssh somehost mv foo/$qf bar/$qf"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Short example using IPC::Open2 or IPC::Open3
by Limbic~Region (Chancellor) on Oct 23, 2007 at 20:22 UTC | |
by gamache (Friar) on Oct 23, 2007 at 20:24 UTC | |
by Limbic~Region (Chancellor) on Oct 23, 2007 at 20:27 UTC |