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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-22-2006, 04:41 PM
|
#1
|
|
Member
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141
Rep:
|
need scriptable ftp client that outputs speed results to file.
Hello,
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,
Lieven
|
|
|
|
06-23-2006, 10:11 AM
|
#2
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
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.
|
|
|
|
06-23-2006, 10:17 AM
|
#3
|
|
Member
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148
Rep:
|
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)
|
|
|
|
06-23-2006, 03:19 PM
|
#4
|
|
Member
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141
Original Poster
Rep:
|
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".
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|