Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-29-2007, 11:18 AM   #1
LQ Newbie
Registered: Oct 2006
Location: Buenos Aires, .ar
Posts: 3

Rep: Reputation: 0
saving output from FIFO?

Hello, i have a little problem, i have to filter the incoming text from a FIFO, and save it to a file, so i do:
root@linux-it:/path/to/fifos# cat debug.fifo | grep -v traffic > file
and /path/to/fifos/file is created, but with no contents :S if i do:
root@linux-it:/path/to/fifos# cat debug.fifo | grep -v traffic
the output from the fifo is filtered and displayed correctly, but i cant save it :S
and if i execute:
root@linux-it:/path/to/fifos# cat debug.fifo > file
the output gets correctly saved to the file...

(im sure this is a pretty stupid problem, but i dont know how to solve it...)


EDIT: It's an issue with the '-v' option, if i exec
cat debug.fifo | grep Permit > file
it saves the file correctly, any walkarounds?

Last edited by slimshady; 11-29-2007 at 11:32 AM.


cat, fifo, file, grep

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slightly newb - autolaunching, scripts, and saving output Scalpel4 Linux - Newbie 15 02-22-2006 10:36 AM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 12:43 AM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 01:30 AM
Saving gcc output files to new directory Fe98 Programming 3 12-08-2003 07:18 AM
nfs FIFO??? granny Linux - Newbie 1 12-16-2002 03:38 PM

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration