Welcome to the most active Linux Forum on the web.
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 06-22-2006, 05:41 PM   #1
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 18
need scriptable ftp client that outputs speed results to file.


As you can probably derive from the title, I'm looking for a scriptable ftp client that also can output the download/upload speeds to some file or log. It should also be able to delete the downloaded file automatically from the remote server afterwards.

At the moment, I'm working with ncftpspooler. I could see that ncftpget/put did output the speeds while up- or downloading. But they did not output just one single line at the end of the process containing an average speed result.
Then I thought that maybe ncftpspooler should output some details about the speeds in it's log but when trying, it didn't.

Also I found how to delete the file from my client after uploading it but no way to delete the file I just downloaded via the ftp. There should be some solution I guess? Afterall, I can manually delete the file from the remote server using an ftp interactive client.

Is there any ftp client (command line) that can show and keep the speed details as well as delete the file it just downloaded?

I should maybe add that I have all the necessary access to this remote server as it is one in my company, the goal of all this is to test our ftp server and connection from various locations.

thanks for any advice.

Kind regards,
Old 06-23-2006, 11:11 AM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Not sure if either will completely satisfy your requirements, but have a look at lftp and at curl. Both are scriptable, both have lots of options, both have a verbose mode (or debug mode) that may give you transfer speed.

Good luck.
Old 06-23-2006, 11:17 AM   #3
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
yeah, use curl. and redirect the output to a file.
then you have the speed output (and some other thing) in a txt file.

you could allso put this in a script, thus letting it download while you are gone, and leaving nice logs where you can later on backtrace any possible problems (or just the speed)
Old 06-23-2006, 04:19 PM   #4
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Original Poster
Rep: Reputation: 18
Thanks for the replies, both seem to be sufficient, I'll check out the docu/man and test it.
Maybe another way is with the use of "here documents".


ftp, ncftp

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
ProFTPd ... FTP client fails to connect: timeout after client sends 'LIST' nutnut Linux - Software 2 01-01-2006 08:09 PM
Scriptable image editor? J_Szucs Linux - Software 1 08-21-2005 10:43 PM
irc client that outputs plaintext to console? Samsara Linux - Networking 2 03-08-2005 02:47 PM
Perl file conversion results in a truncated file kshaffer Programming 0 01-31-2005 03:31 PM
Multiple File Transfers FTP Client 4 Linx aaronluke Linux - Software 2 10-30-2002 10:19 PM > Forums > Linux Forums > Linux - Software

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

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