[plug] Can this be done?

Adrian Chadd adrian at creative.net.au
Mon Dec 14 21:41:28 WST 2009


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

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $24/pm+GST entry-level VPSes w/ capped bandwidth charges available in WA -



More information about the plug mailing list