Get the most recent file in a remote server using FTP script
- From: "anujairaj" <anujairaj@xxxxxxxxx>
- Date: 26 Sep 2006 11:36:18 -0700
Hi,
I have a few files with a timestamp appended in the end ,in a remote
server,I need to get the most recent one in the ftp scripot.But Iam
unable to do it using :
MOST_RECENT_FILE1=`ls -1t ${FTP_OUTPUT_DIR}${FTP_OUTPUT_FILE1}* | head
-1 `
get ${MOST_RECENT_FILE1} ${FTP_INPUT_DIR}${FTP_INPUT_FILE1}.csv
it says,file not found.
Can anyone help me on this?
thanks
.
- Follow-Ups:
- Re: Get the most recent file in a remote server using FTP script
- From: Lie-Algebra
- Re: Get the most recent file in a remote server using FTP script
- From: Lie-Algebra
- Re: Get the most recent file in a remote server using FTP script
- Prev by Date: Re: :t and getting senile.
- Next by Date: Re: Get the most recent file in a remote server using FTP script
- Previous by thread: newbit: what this bash script means?
- Next by thread: Re: Get the most recent file in a remote server using FTP script
- Index(es):
Relevant Pages
|