Ask Your Question
0

how can i write in different files without the -w option ?

asked 2023-01-04 09:49:01 +0000

polo gravatar image

Hi, i have to write into different files (1/hour) and i can't use -w because i don't want raw data.

an exemple :

tshark -Y ... -b files:24 -b interval:3600 -i Ethernet -T json -t u -e frame.time -e a -e b -e ip.src >> text.json

is it possible, and how ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-01-04 15:19:04 +0000

Chuckc gravatar image

Split into two tasks:
Use dumpcap to create the capture files
Have a second script that watches for new files then processes it with tshark

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-01-04 09:49:01 +0000

Seen: 79 times

Last updated: Jan 04 '23