LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2007, 07:37 PM   #1
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Rep: Reputation: 21
Bash reporting 2.9e+02 instead of 2900


When running speed test with my ISP's ftp site bash is reporting speeds like this:

5242880 bytes received in 17 seconds (2.9e+02 Kbytes/s)

instead of a speed of 2900. Is there something I can put in my .bashrc to make this read correctly?

Chris
 
Old 02-25-2007, 07:41 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Last I checked, bash itself didn't have any ftp-ing abilities. You'll want to look into the configure file of the ftp client for options like "report in scientific notation".

That is, I assume 2.9e+02 to mean 2.9 x 10^2.
 
Old 02-26-2007, 05:56 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
2.9e+02 = 290, not 2900
2900 would be a REALLY GOOD connection!!
 
Old 02-26-2007, 05:51 PM   #4
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
I'm running ftp from the command line:

ftp 209.26.88.30

Doing a test just now with gFTP I get the correct speeds:

RETR /test.1meg
150 Opening BINARY mode data connection for /test.1meg (1048576 bytes)
226 Transfer complete.
Successfully transferred /test.1meg at 113.65 KB/s

RETR /test.5meg

150 Opening BINARY mode data connection for /test.5meg (5242880 bytes)
226 Transfer complete.
Successfully transferred /test.5meg at 140.73 KB/s

The object behind all of this is that I'm trying to convince my ISP, Embarq, that in the morning I may be getting close to my 5Mbps speed I'm paying for but as the day progresses the speeds get slower and slower. I've seen some that are close to dial-up.

So the problem appears to be when ftp is run from the cl.

I noticed my mistake in the conversion after I sent the message, you're right 2900 would be awfully fast.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Canon LBP 2900 horatiu_v Linux - Newbie 5 01-24-2009 05:54 PM
Debian and Poweredge 2900 elliotfuller Linux - Hardware 11 02-22-2007 04:23 PM
Canon lbp 2900 problem hate29 Linux - Hardware 1 12-02-2006 05:15 AM
Acer extensa 2900 audio problem detection man1979 Linux - Hardware 1 08-22-2005 10:34 AM
Error reporting in c george_mercury Programming 2 11-20-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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