(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"; }
In reply to Re: Short example using IPC::Open2 or IPC::Open3
by gamache
in thread Short example using IPC::Open2 or IPC::Open3
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |