Bishop, Peter wrote:
Hi again,

I'm moving ahead a little bit and have done some basic tests with tapes but now 
have something I don't understand.

I'm trying to "concatenate" two tapes into one named pipe, and then read the 
pipe, hoping thereby to read the two tapes at once (trying to emulate the z/OS JCL 
concatenation concept).

Here's my logic, which is not working as I'll explain in a minute.  My thinking 
is that I can write to the pipe sequentially and read it sequentially, but it 
appears not to work that way.

pe...@sydvs002:~> sudo dd if=/dev/rtibm0 of=pipe &
pe...@sydvs002:~> sudo dd if=/dev/rtibm1 of=pipe &
pe...@sydvs002:~> sudo dd if=pipe of=packages &

Yuck!
sudo bash -c\
 '(sudo dd if=/dev/rtibm0;dd if=/dev/rtibm1 ) | dd of=packages'

You can punctuate it differently:
sudo bash -c\
 '(sudo dd if=/dev/rtibm0;dd if=/dev/rtibm1 )' | dd of=packages
and extend it
sudo bash -c\
 '(sudo dd if=/dev/rtibm0;dd if=/dev/rtibm1 )' \
| ssh other.example.com dd of=packages

and cat will work as well as dd.




--

Cheers
John

-- spambait
1aaaa...@coco.merseine.nu  z1aaaa...@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to