Home » Infrastructure » Unix » From FTP Site get the latest file
From FTP Site get the latest file [message #335248] Mon, 21 July 2008 10:45 Go to next message
mchittib
Messages: 87
Registered: September 2005
Member
I am trying to get a recent file from ftp site that starts with imma.

I tried the following script and it doesn't work. Please help.

#!/bin/ksh
ftp $FTP_SITE_NAME
get ls -tr imma*|tail -1
bye


I tried to export TEMP_VAR="ls -tr imma*|tail -1"
and tried the follwoing and it didn't work either.
#!/bin/ksh
ftp $FTP_SITE_NAME
get ${TEMP_VAR}
bye


Thanks.

[Updated on: Mon, 21 July 2008 10:55]

Report message to a moderator

Re: From FTP Site get the latest file [message #335257 is a reply to message #335248] Mon, 21 July 2008 11:30 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
This question bears no relation to Oracle.
Please find a more appropriate forum.
The topic is locked.

Regards
Michel
Previous Topic: Date Problem in Script
Next Topic: How to find cobol using a specific table
Goto Forum:
  


Current Time: Mon Dec 02 18:28:39 CST 2024