View Single Post
  #7 (permalink)  
Old 08-10-09, 10:06
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,455
Cool Tail and quote

You are missing the 'tail -1' and closing double quote:
Code:
ssh <UID>@<HOSTNAME> "ls -tr /Parent/child/myfile*|tail -1"|xargs -i+ scp <UID>@<HOSTNAME>:/Parent/child/+ /MyDirectory/
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote