10-12-2009
Help need a sample program
Hi all,
Can some one provide me a sample program which measures the performance (both latency and throughput) of TCP and UDP protocol
9 More Discussions You Might Find Interesting
1. Programming
What are the command I use to compile the sample program at the bottom of the page of http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html?
Here are my attempts:
g++ -c libxslt_tutorial.cpp -I/usr/include/libxml2
g++ libxslt_tutorial.o -l xslt -l xml
Here are the errors I get when I try... (1 Reply)
Discussion started by: siegfried
1 Replies
2. Shell Programming and Scripting
This sample script should obtain a list of files in my home directory:
#!/bin/bash
# Manipulate files and copy to my home directory
#
for FILE in $HOME/.bash*
do
cp $FILE ${HOME}/public_html
chmod a+r ${HOME}/public_html/${FILE}
done
Unfortunately it only produces an error:
... (4 Replies)
Discussion started by: kp400sf
4 Replies
3. Shell Programming and Scripting
I apologize for the confusing title .. What I want to do is write a script that pulls specific input from the command line (after the script name) rather than from within the script.
Example:
-$: howfarbetween.sh Montreal Chicago
Where the script would run based on the inputs of the two... (3 Replies)
Discussion started by: jmvbxx
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All'
I'm a newbe, and just is started to learn unix.
Where can I find a complete sample scripts? I looking for a sample scripts which log in at another unix host and and execute another script server side.
Any input welcome (5 Replies)
Discussion started by: ioniCoder
5 Replies
5. AIX
Hi All,
I urgently need a Sample C program to Send/Recieve a file using Socket.
Thanks
Sara (1 Reply)
Discussion started by: saraperu
1 Replies
6. Shell Programming and Scripting
Hello
Today I had a beautiful test to write some commands using Ubuntu, now I want to make sure of my answers to be reassured, if I had a mistake please correct me
List all files details under ubuntu Desktop.
my answer:
cd Desktop |ls -l
Navigate to your Desktop directory and... (7 Replies)
Discussion started by: S4K
7 Replies
7. Shell Programming and Scripting
I would like to calculate
1/n
In awk, I wrote the following line for the sigma summation:
{ summ+=($1-average)^2 }
Full code:
BEGIN { Print "This script calculate error estimates"; sum=0 }
{ sum+=$1; n++ }
END { average = sum/n }
BEGIN { summ=0 }
{ summ+=($1-average)^2 }
END { print... (8 Replies)
Discussion started by: chrisjorg
8 Replies
8. Shell Programming and Scripting
Below is the code. Its the 1st line of a file.
How can I remove the bracket and display like below.
123 web int 1 09:30:45 2013
I dont want to use AWK or SED or PERL. I need to use only the bash shell scripting commands to do it. (3 Replies)
Discussion started by: ghosh_tanmoy
3 Replies
9. Shell Programming and Scripting
hi gurus ,
i want the command to get the output in the desired format .
basically to convert columns to rows.
please refer to the attachment. (3 Replies)
Discussion started by: r_t_1601
3 Replies
LEARN ABOUT DEBIAN
tcpspray
TCPSPRAY(1) General Commands Manual TCPSPRAY(1)
NAME
tcpspray - print average throughput for a tcp connection
SYNOPSIS
tcpspray [ -v ] [ -e ] [ -h ] [ -b blksize ] [ -n nblks ]
[ -f filename ] hostname
DESCRIPTION
tcpspray sends data to either the discard or echo TCP service on the specified host and prints the average throughput.
OPTIONS
-v Prints a dot for each block sent. Will also print a backspace for each block received in echo mode. Note: the I/O required
for this option will affect the throughput rates.
-e Use the TCP echo service instead of discard (the default) and print throughput rates for both transmission and reception.
-h Print a usage description.
-b blksize Sets the size of a block (the internal buffer) in bytes. Defaults to 1024.
-n nblks Sets the number of blocks to transfer. Defaults to 100.
-f filename Copy the contents of the specified file into the internal buffer (sized by -b option). The buffer is zeroed by default. If
the file is larger than the buffer, only the first blksize bytes will be used. If the file is smaller than the buffer, the
remaining bytes are zeroed.
This option is useful in determining the relationship of the data transferred to throughput. E.g., if data compression is
used on any of the intermediate links comprising the TCP connection, preloading the buffer with a text file will produce
greater throughput than with a file that has already been compressed.
-d delay Sets the time in microseconds to wait between successive buffer transmissions. The default is no delay.
SEE ALSO
ping(8), spray(8)
AUTHOR
Greg Christy (gmc@quotron.com)
23 October 1991 TCPSPRAY(1)