[plug] Can this be done?
Richard Meyer
meyerri at westnet.com.au
Thu Dec 17 07:58:13 WST 2009
Thanks to all who replied - I've passed your suggestions on and am
awaiting acknowledgement.
Thanks again
Richard.
On Mon, 2009-12-14 at 21:41 +0800, Adrian Chadd wrote:
> Guys, if these are tape devices, then "cat" may not be enough.
>
> You may need to use dd, based on the block size. You may need to do
> tape related commands, etc, etc.
>
> So, something like this may work:
>
> (
> <rewind tape0> ; dd if=/dev/tape0 bs=<blocksize> ;
> <rewind tape1> ; dd if=/dev/tape1 bs=<blocksize> ;
> ) | /path/to/program
>
>
>
> Adrian
>
> On Mon, Dec 14, 2009, Russell Steicke wrote:
> > Here's another way to do it, all inside one shell script, to avoid
> > having an external process waiting for you:
> >
> > mkfifo allfiles
> > # Make all the files available on the fifo
> > cat file? > allfiles &
> > # Read all the data from the fifo
> > cat allfiles
> >
> > Read-once-only, of course. Writing is not possible like this. But
> > given that it's called INPUT, that may not be a problem. Creating a
> > unique name instead of allfiles (to prevent multiple instances getting
> > in each others' way) is left as an exercise for the reader. :)
> >
> >
> >
> >
> > --
> > Virus found in this message.
> > _______________________________________________
> > PLUG discussion list: plug at plug.org.au
> > http://www.plug.org.au/mailman/listinfo/plug
> > Committee e-mail: committee at plug.linux.org.au
>
--
Richard Meyer
Necessity is the plea for every infringement of human freedom.
It is the argument of tyrants; it is the creed of slaves.
William Pitt, 1783
Linux Counter user #306629
More information about the plug
mailing list