lda
11-05-2002, 07:05 PM
I am sure there is a way to send the output from tcpdump to a text file, I just don't know the syntax and the man page isn't very informative.
Any Ideas?
Any Ideas?
|
Click to See Complete Forum and Search --> : sending output to a file lda 11-05-2002, 07:05 PM I am sure there is a way to send the output from tcpdump to a text file, I just don't know the syntax and the man page isn't very informative. Any Ideas? Radar 11-05-2002, 08:03 PM I've never used tcpdump, but to send output of a command to file, it's [command] > outfile. example: cat firewall.log | grep tcp > firewall.txt z0mbix 11-05-2002, 08:21 PM Originally posted by Radar I've never used tcpdump, but to send output of a command to file, it's [command] > outfile. example: cat firewall.log | grep tcp > firewall.txt or just grep tcp firewall.log > firewall.txt lda 11-05-2002, 08:42 PM Thanks for the syntax gang but, tcpdump is a packet sniffer and runs from the command line so the output is constantly updating. I do not think that cat or grep will work in this case. But, I thank you for the ideas. If you have any others please offer. Thanks TacKat 11-05-2002, 08:55 PM You don't use grep or cat, just the > operator. Assuming you just run tcpdump and it spits out all the info, just do tcpdump > file_here You can use >> instead of > if you want to append to a file instead of overwrite it. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |