If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > SFTP script in UNIX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-08, 08:29
kumarm kumarm is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
SFTP script in UNIX

We are looking to run an SFTP Shell Script, from a server A(Database Server), to be able to transfer files from a server B(Application) to the Destination Server C.

Basically we need to SFTP a file from one unix server to another, with the script running on a third server.

Any assistance with Sample codes and tippers would be of great help.

Thanks

Madhu
Reply With Quote
  #2 (permalink)  
Old 08-18-08, 11:02
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You may want to have a look at "scp". This tool allows you to specify from which system and path you want to copy to which system and path.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 08-19-08, 01:14
kumarm kumarm is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
The client is insisting to implement the file transfer through SFTP only. Please suggest how to implement it and also suggest the best alternative solution.

Thanks,

Madhu
Reply With Quote
  #4 (permalink)  
Old 08-19-08, 03:34
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Sorry, no idea - and I don't bother to look for one. You should ask your client for the reasons on using sftp and possibly explain that scp also uses SSL.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On