Programming :: Writing A Script To Do A Speed Measurement From ISP's Test Ftp Server
Feb 5, 2010
I am writing a script to do a speed measurement from my ISP's test ftp server. To do this interactively I connect to the server, enter credentials, enable hash and download a test file. The process concludes with something like
Quote:
################################################################
226 Transfer complete.
1048576 bytes received in 2.87 secs (356.6 kB/s)
So I entered the credentials for the server in my .netrc file and created a little bash script as follows
Quote:
#!/bin/bash
cd ~/Desktop
# poiuytrewq is the limit string of the "here" document
[code]...
The script executes as expected EXCEPT that I do not see the statistics at the end of the transfer. It terminates thusly
Quote:
#################################################################################################### ############################################
ken@taylor12:~/Desktop$
I have tried adding another ftp command such as ls to the end of the "here" document (in case the results were clipped by the bye command) but to no avail. The ls result immediately follows the ### - no stats I am at a loss.
View 8 Replies
ADVERTISEMENT
Oct 14, 2010
I am developing a GPS driver which is connected over a high speed UART. The driver of the high speed UART is available and it creates a device node /dev/ttyHS0. Now using the device node, I guess, I will be able to read/write from/to the GPS chip from user space but my aim is to write a GPS driver in the kernel space which would communicate with the high speed UART driver. After some initial study, I think I can either write a line discipline driver or a serio to communicate with the GPS chip firmware through high speed UART driver.
View 5 Replies
View Related
Jan 13, 2010
I have just formated and did a fresh install to start all over. I installed Ubuntu 9.1 and everything went fine but the network. The computer serve as a NAS and MediaPlayer. When getting a file from the server, I get a speed of 40-60mb/sec, which are good for a Gigabit network. When I try to put a file in, the speed can't pass more than 1mb/sec and often stop.
Here's the network info:
Code:
vric@XBMC:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:8c:a1:eb:55
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:8cff:fea1:eb55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]...
Edit: Looks like it's a Gigabit Problem. I connected the Ubuntu box to my Linksys router which is 10/100 and everything is MUCH faster.
View 2 Replies
View Related
Jan 4, 2011
anybody knows nice tool to check connection speed UPLOAD / DOWNLOAD on the server ?Maybe existing something like speedtest.net for servers ?
View 3 Replies
View Related
Jul 21, 2010
I need to monitor the amount of free physical memory on Linux from within a large C program. The sampling will occur very frequently, so the measurement cannot be performance intensive. The fact that Linux uses much of the theoretically free memory for cache and buffers means that just measuring the free pages is not sufficient. Using free + cache + buffers gives an overestimate as not all cache/buffers can be freed, but I could get a rough idea of how much generally can't and subtract that from the answer.
Possible options that I've come across so far are: Parsing /proc/meminfo - but that involves reading from file which is slow. Extracting the free, cache and buffers values from the output of the Free command - but is there a quick way to do this? Parsing the /proc/freemem file produced by the API here - but this is again reading from file. Is there a way to get that output directly? Speed is an extremely high priority, and the answer it must accurately represent the amount of memory that my program could expand into (to within a few Mb).
View 1 Replies
View Related
May 2, 2011
I am going to write a TCP server program using c. Can anyone give me some advices on whats and what not to do specially when using select?
There would be a lot of data to be transferred both on the server and back to the client. I already have a simple server here but the server uses a lot of resources. Maybe 3 to 4 connections and the server's load would rise to unacceptable levels.
Which do you think is better to use fork or select?
View 4 Replies
View Related
Oct 21, 2014
I mount a BD-RE in Debian Jessie to write about 20GB of data. But the writing speed is terrible slow. I get a Speed of 250kb/sec.
Are there any options to increase the speed of writing? I don't use packet writing and no wodim, no growisofs, nothing. I just mounted the disk and I use mc (Midnight commander) to copy the data.
View 0 Replies
View Related
Nov 3, 2010
I'm trying to identify when WAN bandwidth is compromisedI don't want to run this continuously, but would like something that I can put in a script for testing purposes. All the speed tests I've foundhile quite adequate otherwise, utilize a GUI interface.Similarly, is there a linux-based client / server pair that I can use to test out LAN /VLAN issues?
View 13 Replies
View Related
Jul 7, 2011
is there anyway i can speedtest.net with ssh access into my server ?
View 3 Replies
View Related
Feb 16, 2011
If you have a proxy and receive/send data from/to both the client and the server,is there a way to test what part has data to send(client or server) ?
View 1 Replies
View Related
Nov 5, 2010
Is their from the CLI a way to test the internet speed between two servers?I'm thinking some sort of ping test that can calculate it or something.
View 2 Replies
View Related
Jul 6, 2011
program to measure speed of sending file from one computer to another
View 1 Replies
View Related
Jul 7, 2011
I want a program that can be installed in two pc and measure speed of transfering files from one to another or any data measured in Mega bit
View 1 Replies
View Related
Jun 11, 2011
I'm on a Dell Inspiron 6000. I installed i8kutils and it works. Fan speed reduces CPU temp from 50C to 44C. A start-up script invokes the i8k module: $ udo /usr/sbin/modprobe i8k force=1 which creates /proc/i8k. The man page for i8kctl is straightforward: a few simple commands to read info from the aforementioned file.So. I know nothing about writing even basic bash scripts. I gave it a go here but I know this is way wrong. Would anyone like to help a guy out? This is my starting point (don't laugh):
Code:
#!/bin/bash
# script to toggle fan speed low/high
[code]...
View 5 Replies
View Related
Jun 26, 2010
I'm using a remote dedicated server running ubuntu server edition, and I have no idea what the upload/download speeds are.Is there a reliable method to test these speeds via the command line?
View 2 Replies
View Related
Mar 18, 2010
How do I do a download speed test when comparing Hosting Providers?I'm on a Macbook Pro - wondering if there's an ap for this?Also, I have accounts at each provider with a 100mb file, but I'm guessing I'm closer to one than the other? How would I make it fair?
View 4 Replies
View Related
Jan 20, 2011
I need to test network card throughput and speed between two computers, one is running Fedora and other running Windows 7. Usually I would use netperf to perform this task, however I can't find Windows build of netperf. Can anyone recommend any network evaluation tool, similar to netperf (clien/server) which has both Windows and Linux versions.
View 2 Replies
View Related
Dec 15, 2010
Is info on output of either Wii or XBOX to Linux program available? I have a familial tremor and hope to use one of these devices to measure efficiacy of various medicines; since both devices use accelerometers, displaying output in either graphical or digital form could be a useful tool in determining whether increased dosage is useful in decrease of tremor. If this works, could be a lucrative business since large numbers of seniors suffer from tremor, palsy, Parkinson, and similar diseases.
View 2 Replies
View Related
Apr 21, 2010
I want to write some PHP for a website that'll have the data that the script will generate written inside a table with thin black line around it, much like LQ itself. My problem is: how do I draw the box that the text will be inside of, since the amount of text will vary - if I have a GIF with a picture of a box, that'll be of a fixed length, and my script can then only generate that much text, for it to look nice. Or do I need to fiddle with the GD library to get done what I want?
View 4 Replies
View Related
Aug 11, 2010
So basically, there is a really cool writing system I have been working on. It could be viewed (for simplification purposes) like an encryption method for the Latin script.
Facts about the writing system:
It has a little over 300 symbols.
It is syllable-driven.
It is highly compositional (eg. "c", "ca", "cae", "ca " and "ci." all map to different symbols - and NOT by overlaying elements)
Symbols have medium graphical complexity (comparable to Korean Hangul, or Japanese Hiragana)
Has a rather complex set of diacritics (~10, some of which can go on any symbol)
Has no ligatures
How transliteration occurs:
Sequences of Latin symbols map to certain symbols. Example below:[G][rou][p ][hu][g.]Characters sequences between "[" and "]" map to a single symbol (so it would take only 5 symbols to write "Group hug.").
How I want it to work:
I would like to have a daemon that: Intercepts all text displayed on the screen.
Converts it to my writing system (changes letter sequences with individual Unicode codes)
Leaves unsupported symbols unchanged.
Displays all the text on the screen using my font and characters intertwined with the fonts and characters left unchanged.
For example, if you take the following line of C++ code:for (i = 1; i <= n; i++)
I would like it displayed like this:[fo][r ]([i ]= [1]; [i ]<= [n]; [i]++)
Bold-symbols should be in my Unicode font with special symbols defined for this writing system, and the rest should be in its original font and encoding. Also, I would like this encoding to hold for display-purposes only. The data in the memory should remain unaffected. This also means real-time adjustments: if I open a text editor (say, from the OpenOffice Suite) and I start typing, I would like to see what I type encoded with my writing system, even though the document actually contains Latin letters. This also means that the symbol immediately before the cursor may change as you type.
View 3 Replies
View Related
Apr 27, 2011
I have written a daemon server. I would like to add the ability for the daemon to update itself. That is, it should be able to download the latest version of the code (when it receives a signal from a client) and then restart itself. I am stuck on getting the daemon to restart itself. The problem is killing the old daemon without killing the process that is starting the new daemon. In my latest attempt, the daemon that is updating itself runs a program in a subshell (using system) that starts a restarter daemon that runs the original daemon (again using system) with the restart command option. With the restart option, the new version of the daemon sends a terminate signal to the old version. Obviously, when I run the original daemon manually with the restart option, it restarts reliably. I figured that issuing the same restart command from a daemon would adequately isolate the process doing the restarting from the program being restarted. Using ps, I can see that the daemon does actually restart. However, the client locks. In fact, a few times, the OS locked and I had to reset.
View 7 Replies
View Related
Apr 9, 2011
How to write a mkdir with -p option. I am struggling for creating subfolders. the chdir() is not working and thus subdirectories can't be created.
Code:
View 1 Replies
View Related
Apr 10, 2010
I'm not able to write to a file using my perl cgi script which is as fallows:
Code:
#!/usr/bin/perl -w
use strict;
print "Content-type: text/html
[Code]....
View 4 Replies
View Related
Feb 28, 2010
I am trying to write .pgm images using the O_DIRECT flag in open().I have a char* buffer which has the image data. I know that I have to align the buffers and have done that using posix_memalign() yet only a part of the image gets written.Has someone used O_DIRECT for writing files successfully?
View 1 Replies
View Related
Jul 7, 2010
I'm trying to write a simple, console based application in linux, in c++. I know how to start in Eclipse and I have some experience in c++ from Windoze. I would like to ask, if there is some tutorial available on writing console apps. I mean, I know from using linux that there are two conventions on using parameters in command line (-v and --version for example).
View 2 Replies
View Related
Mar 19, 2011
My platform is linux Centos 5. I have read that to learn programming is to read well-written code and take some project to work with. I am always fascinated by routers and firewalls. Like pfsense and vyatta. May be my searching skills are worst but i am not able to find any good tutorials. Ofcourse i dont expect anyone to write a complete router on their blog but wasnt even close to it.
View 1 Replies
View Related
Nov 11, 2010
I am running a java application on centos. For now I have a gsm modem connected via the the usb cable. Below is the message I get when I type the command dmesg | grep tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
usb 2-2: pl2303 converter now attached to ttyUSB0
[code]....
View 9 Replies
View Related
Jun 3, 2011
Code:
int main ()
{
[code]...
View 9 Replies
View Related
Oct 2, 2010
I have assignment to write bash script and I have to submit it after tommorow . I do not have experience to finish it by myself.I am really need help if any one can contact me. on my email I will be thanks him/ her.
View 14 Replies
View Related
Jan 1, 2011
Reading and writing text files in C?
View 9 Replies
View Related