LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2009, 07:50 PM   #1
amazon
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Smile Help needed to transfer list of files to FTP server, to different folders


Hello Gurus,

Help needed to transfer list of files to FTP server, to different folders

My requirement is something like this

I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server.

I have created custom program where I will extract all the mapping details like file_names, source_path and destination_path directories and storing in a database table.
The shell script should take the file_name and transfer the file from source_path (Apps Server) to destination path (FTP server). Since the count will be around 5000 for each run I think it will not a good idea to open FTP connection for each file transfer.

Appreciate If you can suggest the pseudo code (or) please send me any sample codes

Thanks in advance

Syed
 
Old 06-26-2009, 01:12 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

What you're asking can certainly be done.

But you might wish to consider an alternative like rsync:

http://everythinglinux.org/rsync/

You're aware that you can transfer multiple files in a single FTP connection, I assume. And "5000" really isn't that much. Even a relatively inefficient transfer method probably wouldn't put much of a burden either on the system or on your batch program.

IMHO .. PSM

Last edited by paulsm4; 06-26-2009 at 01:16 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[CentOS] Folders+Files Users Access Control List Remoz Linux - Server 1 02-24-2009 05:23 AM
how to create a list of files and folders (name and size only) rastiazul Linux - General 16 11-04-2008 03:14 PM
Transfer last generated files using ftp sarajevo Linux - Server 2 05-24-2008 12:49 AM
using wget to transfer files ober ftp hkhiroya Debian 1 05-20-2006 04:23 PM
Software Needed To Transfer Files Elite_Gamer04 Linux - Software 9 06-14-2004 06:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration