LinuxQuestions.org
Visit Jeremy's Blog.
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 11-23-2010, 06:39 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
Help with a ftp script


Sorry if i have posted in wrong sections.

I need a little help creating a ftp script that will take connection and file details from text files.


For example:

ftpscript.sh - script that looks for details and does transfer

ftpparams.txt - ftp server connection details in single line csv format

ftpfiles.txt - files that need to be transfer, one file per line.


I have tried using awk with no success, any help would really be appriciated.

Thanks in advance
 
Old 11-23-2010, 07:18 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
I always like expect for scripting interactive sessions. This page is an introduction, and even includes an FTP-specific example.
 
Old 11-23-2010, 08:30 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,573

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
scripting ftp

It sounds like you are trying to recreate features of lftp and ncftp.

You might look at them and see if one would serve your purposes better and be easier to automate as you wish than posix ftp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FTP script help josephf Linux - Newbie 5 07-30-2010 02:29 PM
Bash script problem with ftp session exiting the script early edomingox Programming 5 02-23-2010 05:39 AM
FTP Script tommytomato Linux - General 28 07-14-2006 05:16 AM
Urgent Help: Perl FTP Script Using NET::FTP xboxter Programming 8 05-16-2005 06:57 PM
Ftp script scialom Linux - Software 2 05-04-2004 03:03 PM

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

All times are GMT -5. The time now is 06:06 AM.

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