|  |  | Archives of the TeradataForumMessage Posted: Mon, 07 Dec 2009 @ 13:55:13 GMT
 
 
  
| Subj: |  | Re: FTP from HTTPS server to Unix Box |  |  |  | From: |  | Leslie, Quincy |  
 Try the content below.  Coding and scripts are resident on the Unix server and ftp from the other server. 
     -----------------------------------------
     Fpt code-  Note- I recommend dropping the remarks in the actual code:
     #-----------------------------------------------------------------------
     user usrname pwd      #logon to remote server
     cd /dir1/subdir2/subdir3   #change to desire directory on remote server
     pwd               #print the directory on the remote
     server- prove you are there
     lcd /localdir1/subdir2/subdir3   #change to desire local directory
     #Next, ftp the files from HTTPS remote server to Unix local server
     get fileone
     get filetwo
     get fileetc
     close      #stop the ftp- could just quit, but close first
     quit      #logoff the remote server.
     -----------------------------------------------------------
     ftp -v -n -i $REMOTE_SERVER < $FTP_DOC #2>&1 >> ftp_log &   #Execute from
     Unix server
     -----------------------------------------------------------
 I have run variations on this code for over 20 years, shipping data around the world, etc. So the core design has been proven.  Please
report if it runs. 
 
 |  |