02-09-2010
Then use a subshell where you can kill the tcpdump, but don't put your tcpdump in a subshell : a subshell can't return any value to its parent process.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Perl/UNIX experts,
I have a problem in running a shell script from my perl script (auto.pl).
I run the perl script using
perl auto.pl
from the shell prompt
The shell script picks the files in "input" folder and procesess it.
The shell script blue.sh has this code.
export... (16 Replies)
Discussion started by: hifake
16 Replies
2. Shell Programming and Scripting
hi all,
for an example:
$ ps -ef | grep apache | awk '{ print $2, $3 }'
24073 11784
28021 1
28022 1
28038 1
28041 28040
28045 28041
28047 28041
28040 1
28049 28041
28051 28041
28053 28041
28030 1
28054 28041
28055 28041
28056 28041
28057 28041 (5 Replies)
Discussion started by: raghur77
5 Replies
3. Shell Programming and Scripting
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies
4. Shell Programming and Scripting
Hi,
I've a script which kills all process, but i need a script shell script(sh), where it'll kill process on that particular terminal. below is example
TY=`tty`
for P in $TY
do
`kill -9 $P 2>/dev/null`;
done
echo "test process killed"
break
... (3 Replies)
Discussion started by: asak
3 Replies
5. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
6. UNIX for Dummies Questions & Answers
Hi!
I need your help, please.
I'm in AIX node and sometimes listener process from an oracle instance gets duplicated, i mean that it get spawned a second listener process. As we can't apply changes to the databases on this months, i want to build a shell that can identify the second... (6 Replies)
Discussion started by: Pactows
6 Replies
7. Shell Programming and Scripting
Hello,
I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this?
Thanks in advance!
- Ryan (19 Replies)
Discussion started by: prometheon123
19 Replies
8. Shell Programming and Scripting
hi,
Am a newbie to unix and wasnt able to write script to my requirement.
I need a shell script, which should find a process by name and kill it. For eg: let the process name be "abc". I have different processes running by this name(abc), so should kill them all.
Condition would be: if... (7 Replies)
Discussion started by: fop4658
7 Replies
9. Shell Programming and Scripting
HI i would like to know how i can simulate a shell scripts for my requirement.
example
Server name child Process id Parent Process id
Vpesh 16013 15637
Server name child Process id Parent Process id
Vpesh 16014 15637
Server name child... (1 Reply)
Discussion started by: vpesh
1 Replies
10. Shell Programming and Scripting
Hi All, Looking for a quick LINUX shell script which can continuously monitors the flle size, report the process which is creating a file greater than certain limit and also kill that process. Can someone please help me on this? (4 Replies)
Discussion started by: vasavimacherla
4 Replies
LEARN ABOUT DEBIAN
tcpdump2xplot
TCPDUMP2XPLOT(1) BSD General Commands Manual TCPDUMP2XPLOT(1)
NAME
tcpdump2xplot -- converts tcpdump output to xplot input for analysis
SYNOPSIS
tcpdump2xplot [-?] [-c] [-help] [-list[filename]] [-plot[filename]] [-q] [-r] [-s] [-t] [-w]
DESCRIPTION
tcpdump2xplot takes the output of
tcpdump -tt -S ...
and plots it in terms of sequence-number versus time, with other info displayed (e.g., the TCP window, acks, etc.).
OPTIONS
-?, -help prints a help message. -c, ``cumulative'', adds all the data coming from a server. -list[filename] prints the list of generated
plot files to filename. -plot[filename] plots the packets from filename. The filename may be built out of a hostname and port number, e.g.:
abc.def.com:1234. The default is
fromhost:fromport-tohost:toport.xplot
where fromhost, fromport, thost, toport are extracted as conversations from the tcpdump data. -q means "quiet" --- no visible output. -r
means use relative sequence numbers. -s means break up conversations on TCP syns. -t convert time to decimal number of seconds. -w plots
the TCP window.
EXAMPLES
SEE ALSO
tcpdump(1), xplot.org(1)
BUGS
tcpdump2xplot may not deal properly with output from tcpdump that is not TCP. Either filter to only tcp or be careful.
HISTORY
The tcpdump2xplot has been contributed by xplot.org users. Thanks to Garret Wollman for contributing the original tcpdump2xplot.pl script
and thanks to Eric Prud'hommeaux (@ w3.org) for making <http://www.w3.org/pub/WWW/config/tcpdump2xplot.pl> available, a much improved ver-
sion. The one included here is a slightly improved version of Eric's.
BSD
27 January 1999 BSD