Download your favorite Linux distribution at LQ ISO.
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, 12:18 PM   #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 12:32 PM.


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 11:36 AM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 01:43 AM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 02:30 AM
Saving gcc output files to new directory Fe98 Programming 3 12-08-2003 08:18 AM
nfs FIFO??? granny Linux - Newbie 1 12-16-2002 04:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 PM.

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
Open Source Consulting | Domain Registration