02-23-2011
Ok, no pb. FYI i updated my previous post
This User Gave Thanks to ctsgnb For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I having problem when I call this cleanupmenu function within a script. It continuously loops and goes to selection * That wasn't a valid selection. I have to kill it everytime to stop it. What am I doing wrong. I use this function menu in several other scripts and I don't have this problem at... (2 Replies)
Discussion started by: darthur
2 Replies
2. Shell Programming and Scripting
Dear all
How to write the shell script for the following statement:
(C programming)
for (i=0;i<30;i++) {
if i=1
continue *skip this number
(To do function here....)
...
}
similar statement in while loop....
I wrote the script in sh... (3 Replies)
Discussion started by: trynew
3 Replies
3. Programming
Does anyone know what __read_nocancel does and why it would go into an infinite loop?
What I have gathered in my searches is that it pertains to server code. Yet, I'm not running this application in server mode.
NOTE: There are server functions in the shared object, but the specific code... (3 Replies)
Discussion started by: marcus121
3 Replies
4. Shell Programming and Scripting
Hi all,
I am trying to call a function in for loop in the below format
#!/bin/bash
abc()
{
commands
}
for (( i=0; i<=10; i++ ))
do
abc
done
The error i am getting when trying to execute:
syntax error: unexpected end of file
canany one help me where i am going wrong?? (5 Replies)
Discussion started by: gsr_kashyap
5 Replies
5. UNIX for Dummies Questions & Answers
my ksh script is not working...
i wanna remove lines in file2.txt from file1.txt
# cat file1.txt
this is line one
this is line two
this is line three
this is line four
this is line five
# cat file2.txt
this is line two
this is line three
# cat my_script.ksh
#!/bin/ksh
i=1
y=1... (8 Replies)
Discussion started by: curtis911
8 Replies
6. Shell Programming and Scripting
check_deplver ()
{
dir=/abc/def/ghi
if ssh -o StrictHostKeychecking=no $1 "" 2> /dev/null
then
echo " output is "
ssh -o StrictHostKeychecking=no $1 "ls -lrt $dir | grep -i abc" 2> /dev/null
else
echo " directory not presnt"
fi
}
This is not working.
But... (7 Replies)
Discussion started by: NarayanaPrakash
7 Replies
7. Shell Programming and Scripting
Hi ALL,
I want to replace string occurrence in my file "Config" using a external file named "Mapping" using awk.
$cat Config
! Configuration file for RAVI
! Configuration file for RACHANA
! Configuration file for BALLU
$cat Mapping
ravi:ram
rachana:shyam
ballu:hameed
The... (5 Replies)
Discussion started by: useless79
5 Replies
8. UNIX for Advanced & Expert Users
Hi,
I was working on implementing error handling in my bash scripts, and decided to use trap to send myself an email incase of any errors. But it seems that somethings has gone wrong, and I am continuously getting same emails for an old error repeatedly (even though I have stopped/killed all... (1 Reply)
Discussion started by: cool.aquarian
1 Replies
9. Shell Programming and Scripting
Hi All,
I have created one function for KSH and was running well with one parameter input since I just had to use $1 to get the parameter.
Now I want to do loop for each parameter(actually filenames) . I have try to use do loop, but $i does not resolve to parameter instead it resolves to 1,... (5 Replies)
Discussion started by: mysocks
5 Replies
10. Shell Programming and Scripting
Hello Experts,
I have created one user confirmation process that will ask for user input. I have created one func for it. The issue is if i call it as normal then it works fine but if i am calling it in another script(in while loop) . It is going in infinite loop and not asking for user input. ... (8 Replies)
Discussion started by: looney
8 Replies
LEARN ABOUT DEBIAN
tracetopends
TRACETOPENDS(1) User Commands TRACETOPENDS(1)
NAME
tracetopends - reports the endpoints that are responsible for the most traffic in a trace
SYNOPSIS
tracetopends [ -f bpf ] [ -A addrtype ] [ -s ] [ -d ] [ -b ] [ -a ] [ -p ] [ -n topcount ] inputuri [inputuri ...]
DESCRIPTION
tracetopends reports the number of bytes and packets sent and received by the busiest endpoints observed in the input trace(s).
-f bpf filter
Output only packets that match tcpdump style bpf filter.
-n top count
Report the top N endpoints (defaults to 10).
-A address type
Specifies how an endpoint should be defined. Suitable options are "mac", "v4" and "v6" which will report endpoint stats for each
observed MAC address, IPv4 address and IPv6 address respectively.
-s Sort endpoints based on the amount of outgoing traffic (will cancel any previous -d option. This is on by default.
-d Sort endpoints based on the amount of incoming traffic (will cancel any previous -s option.
-b Sort endpoints based on the amount of IP traffic (will cancel any previous -a or -p options. This is on by default.
-a Sort endpoints based on the amount of application layer traffic (will cancel any previous -b or -p options.
-p Sort endpoints based on the amount of packets (will cancel any previous -b or -a options.
OUTPUT
Output is written to stdout in columns separated by blank space.
The columns are (in order):
* Endpoint address
* Time last observed
* Packets originating from the endpoint
* Bytes originating from the endpoint (IP header onwards)
* Payload originating from the endpoint (post transport header)
* Packets sent to the endpoint
* Bytes sent to the endpoint (IP header onwards)
* Payload sent to the endpoint (post transport header)
EXAMPLES
Find the IPv4 addresses that are sending the most traffic.
tracetopends -A v4 -b -s erf:trace.erf.gz
LINKS
More details about tracetopends (and libtrace) can be found at http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
SEE ALSO
libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1), tracereport(1), tracertstats(1), tracestats(1), tracepkt-
dump(1), traceanon(1), tracesummary(1), tracereplay(1), tracediff(1), traceends(1)
AUTHORS
Shane Alcock <salcock@cs.waikato.ac.nz>
tracetopends (libtrace) September 2011 TRACETOPENDS(1)