08-22-2006
Quote:
Originally Posted by blowtorch
Well, see, there you have a problem. Cause tar needs filenames.
fifos have filenames.
Quote:
If you just want to write to an output file, why not use dd?
I want to include several compressed disk images in a tar file, so that I can stream them at once across the local area network, without having to store compressed copies on disk before sending. dd is great for copying
one stream, in fact I've been using up to this point and intended to use it to feed the fifos, but it cannot multiplex several in a manner easy to seperate at their destination.
tar is being entirely too smart for it's own good, apparently. It could work if it'd just open the files. Is there any older, dumber archiver I can use?
Last edited by Corona688; 08-22-2006 at 01:30 PM..
10 More Discussions You Might Find Interesting
1. Programming
omg i need help so bad. I've been working on a school project for what seems like an eternity and i'm close to deadline. Using FIFO's (i ahve to) to communicate between parent and child proc's. Right now I'm stuck on a read/write.
fifomsg is a struct with int length and char message fields. ... (5 Replies)
Discussion started by: Funktar
5 Replies
2. Programming
Hi, so I've got this program("main") that fork executes another ("user"). These programs communicate through fifos.
One communication is a spawn call, where user passes an executable, main forks and executes it. So, I'm keeping track of all my processes using a task table. After the fork (for... (6 Replies)
Discussion started by: Funktar
6 Replies
3. Linux
This isn't strictly a Linux question, but... I've been working on a project to archive some streaming media for time shifting using 'mplayer' and have been using FIFOs to archive in Ogg Vorbis format:
mkfifo program_name.wav
(mplayer -ao pcm -aofile program_name.wav &)... (0 Replies)
Discussion started by: deckard
0 Replies
4. UNIX for Advanced & Expert Users
Is there a performance advantage of one of these over the other? Obviously, it makes no sense to use normal TCP sockets or UDP sockets w/ the overhead they carry. But what about UNIX domain sockets vs FIFOs? I'd think they'd be very similar, in terms of performance and in terms of how they're... (2 Replies)
Discussion started by: mgessner
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
7. Programming
I want to have a message send & receive through 2 uni-direction FIFO
Flow of data
FIFO1
stdin--->parent(client) writefd--->FIFO1-->child(server) readfd
FIFO2
child(server) writefd2---->FIFO2--->parent(client) readfd2--->stdout
I need to have boundary structed message... (3 Replies)
Discussion started by: ouou
3 Replies
8. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
9. UNIX for Dummies Questions & Answers
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Discussion started by: vivien_chu
1 Replies
10. AIX
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies
fifo(n) fifo(n)
__________________________________________________________________________________________________________________________________________________
NAME
fifo - Create and manipulate u-turn fifo channels
SYNOPSIS
package require Tcl
package require memchan
fifo
_________________________________________________________________
DESCRIPTION
fifo creates a stream-oriented in-memory channel and returns its handle. There is no restriction on the ultimate size of the channel, it
will always grow as much as is necessary to accomodate the data written into it.
In contrast to the channels generated by memchan a channel created here effectively represents an U-turn. All data written into it
can be read out, but only in the same order. This also means that a fifo channel is not seekable.
The channels created here can be transfered between interpreters in the same thread and between threads, but only as a whole. It is
not possible to use them to create a bi- or unidirectional connection between two interpreters.
Memory channels created by fifo provide two read-only options which can be queried via the standard fconfigure command. These are
-length
The value of this option is the number of bytes currently stored in the queried memory channel.
-allocated
The value of this option is the number of bytes currently allocated by the queried memory channel. This number is at least as big as
the value of -length.
As the channels generated by fifo grow as necessary they are always writable. This means that a writable fileevent-handler will fire con-
tinuously.
The channels are also readable if they contain more than zero bytes. Under this conditions a readable fileevent-handler will fire continu-
ously.
NOTES
One possible application of memory channels created by memchan or fifo is as temporay storage device to collect data coming in over a pipe
or a socket. If part of the processing of the incoming data is to read and process header bytes or similar fifo are easier to use as they
do not require seeking back and forth to switch between the assimilation of headers at the beginning and writing new data at the end.
SEE ALSO
fifo2, memchan, null
KEYWORDS
channel, fifo, i/o, in-memory channel, memchan, stream
COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Memory channels 2.1 fifo(n)