1 like 0 dislike
9 views
in Education & Reference by (720 points) | 9 views

1 Answer

0 like 0 dislike
Best answer
yum install wireshark-gnome


mkdir /script/

vi /script/tshark.sh

#!/bin/sh
/usr/sbin/tshark -a duration:86400 -b filesize:20480 -f "udp port 5060" -w /var/www/html/pcap/`date +%F--%T`FILENAME.pcap

chmod -R 777 /script/tshark.sh


mkdir /var/www/html/pcap/
chmod -R 777 /var/www/html/pcap/

date :- to know the exact time of time

================================================== =========================

Crontab -e


######### Wireshark Trace #################
31 10 * * * /script/tshark.sh(This Time should be around 3 minutes more that live time as shown in date)
28 0 * * * /usr/bin/find /var/www/html/pcap/ -type f -name "*.pcap" -mtime +3 -exec rm -f {} \;
by (2.9k points)
selected by

Related questions

0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,227 questions
1,373 answers
559 comments
2,099 users