Re: Sending tcpdump grep-ed output to file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2004-01-14 at 11:00, crucificator wrote:
> I want to use grep to filter output of tcpdump file. So I use smth like:
> 
> tcpdump host <host> -l | grep "string" >dump.txt
> Although the command without >dump.txt  sends output to screen as 
> intended I do not get content in dump.txt

Because you're buffering the output with "-l".  Stop using that when you
want to redirect to a file.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux