Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 07 Dec 2009 @ 13:55:13 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023