Have you read all the advice you have been given? Your ls -ltr command is returning all sorts of information: file privileges, file owner, size, modification date, file name. I don't think you want or need all that, and scp certainly is confused by it. Use ls -1tr instead. It will return the file name only.
In reply to Re^5: scp output without having to use "Net::SCP" in Perl
by GotToBTru
in thread scp output without having to use "Net::SCP" in Perl
by pjzero@90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |