LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-29-2007, 11:18 AM   #1
slimshady
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:
Code:
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:
Code:
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:
Code:
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...)

thanks!

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

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


Reply

Tags
cat, fifo, file, grep



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 AM.

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