LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-15-2006, 08:32 PM   #1
ishcoleobo
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 ftp.ftpsite.org'

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

So if filename.txt looked like....
-------------------
ftpuser
ftppass
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
randyding
Member
 
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
sohmc
Member
 
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 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