Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-15-2006, 08:32 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 27

Rep: Reputation: 15
FTP Command

Is there any way to automatically insert commands into an FTP screen? For example...

I want to have a script that will gather information and upload it to an FTP site every day. I have found the Macro command... but that still requires you to type... I want this to be automatic.

For example. In windows... in the FTP command. You can use the args...

'ftp -s:filename.txt'

It will connect to and then put in all of the commands listed in filename.txt.

So if filename.txt looked like....
del document.txt
put C:\document.txt document.txt

It would do all of those commands... without a user ever touching it. Any help?
Old 01-15-2006, 08:41 PM   #2
Registered: May 2004
Posts: 552

Rep: Reputation: 31
There are lots of tools that do this, I like kermit scripting.
You could also write your program in C and use the curl library.
Old 01-15-2006, 08:41 PM   #3
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
I've found ncftp does some basic stuff like that. Using ncftpput, you can put c:\document.txt and give it an option to automatically overwrite, so you don't have to delete it.


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
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 03:26 AM
ftp command zaicheke Linux - Networking 2 11-20-2004 08:31 PM
ftp command kpachopoulos Linux - General 3 11-03-2004 02:36 PM
ftp command stefane321 Linux - Networking 1 09-10-2004 03:02 PM
FTP Command usb1 Linux - Newbie 7 12-21-2003 09:37 PM > Forums > Linux Forums > Linux - Software

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

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