Re: Sending tcpdump grep-ed output to file

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

 



On January 14, 2004 08:00 am, 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
>
> What might be the problem? I am at loss here...
>
> 10ks in advance


Hi,
I don't see anything wrong unless there is no output at the time you create 
the file. Is it created and empty or just not created?

Try using 'tee' to send output to std out & a file. 
-- 
Pete Nesbitt, rhce


-- 
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