# Revision history [back]

### tshark to write packets to text file every minute?

How do we write packet details(hex values) in a text file after every X secs?

tshark -i eth -b duration:10 -x -w trial.txt i tried this but there are junk values in the files rather than the packet bytes in Hex

 2 None grahamb 22787 ●4 ●620 ●224 https://www.wireshark.org

### tshark to write packets to text file every minute?

How do we write packet details(hex values) in a text file after every X secs?

tshark -i eth -b duration:10 -x -w trial.txttrial.txt


i tried this but there are junk values in the files rather than the packet bytes in Hex