Thread: capturing data on .pcap file and piping it.
please help! have gps device sends in data on port number 5000, able capture data pcap file using tcpdump. problem is, need pipe data text file , when data arrives pcap file continuously. can body me script please?
did extensive search, no avail. been trying solve past 3 days.
use following commands capture , pipe data, happens once when issue command. want happen continuously , when data arrives.
tcpdump port 5000 -vvv -w test.pcap
tcpdump -nnr test.pcap > tst.txt
in advance.
if need both pcap file , text file, suggestion run 2 instances of tcpdump @ same time, 1 wirting pcap file , 1 writing text file.
i these in 2 sperate terminal windows, detach them 1 terminal , have them run background (with "space &" @ end of command line).code:sudo tcpdump port 5000 -w test.pcap sudo tcpdump port 5000 -nn >tst.txt
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] capturing data on .pcap file and piping it.
Ubuntu
Comments
Post a Comment