LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Help with a ftp script (https://www.linuxquestions.org/questions/programming-9/help-with-a-ftp-script-846009/)

ginda 11-23-2010 06:39 AM

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

JohnGraham 11-23-2010 07:18 AM

I always like expect for scripting interactive sessions. This page is an introduction, and even includes an FTP-specific example.

wpeckham 11-23-2010 08:30 AM

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.


All times are GMT -5. The time now is 03:46 PM.