LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-08-2009, 01:41 AM   #1
alphaniner
LQ Newbie
 
Registered: Jan 2009
Distribution: Arch
Posts: 18

Rep: Reputation: 1
'7zr t archive.7z |tee file.out' = delay while pipe 'fills'


I need to send the output of '7zr t archive.7z' to a file for a script, but I also want the output printed to the screen. So I piped it to tee. Which resulted in great confusion when the screen (and as I later discovered, the output file) only updated twice in the 5 minute process. Apparently pipes have a buffer or some such which seems to be 4096B.

So the question is, is there any way to change the behaviour of the pipe, or is there another way to achieve the desired outcome (output both to a file and to stdout)?
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a big buffer to introduce delay in a pipe. (FIFO) bwashed Programming 9 08-15-2014 09:51 PM
Redirect make output to file, make | tee not working jiobo Linux - Software 5 05-11-2014 10:43 AM
230 MB file download fills 800MB of memory TheRudy Linux - Server 4 08-06-2007 11:23 AM
How to create a log File using tee?? rmvinodh123 Programming 1 04-12-2007 02:21 AM
Clonning data, fifo/pipe/tee problem : Resource temporarily unavailable rmarco Linux - General 2 05-05-2005 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:30 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