Hi all, I'm using tshark to record all traffic in my office during a day, for use in a research project. I have a cron job mon-fri at 8 in the morning, that runs a shell script with the following:
I would like to have access to the information printed by tshark, when executing, eg. drop count:
I was hoping to have a switch to specify a log file, however I’m unable to find such. Does such exist? appending " > tmp.log" doesn’t catch the output.. Any suggestions as to how I can get a log? Thanks in advance asked 23 Apr ‘14, 03:04 kidmose edited 23 Apr ‘14, 03:05 |
One Answer:
Hi kidmose, if you would search on internet regarding redirection of i/o you would find a lot of info. here are some useful links: or try this:
answered 23 Apr '14, 03:16 Edmond |
Note that neither tshark nor Wireshark are recommended for continuous traffic capture, instead use dumpcap.
See @Jasper’s blog entry for more info: http://blog.packet-foo.com/2013/05/the-notorious-wireshark-out-of-memory-problem/