Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!greenber.austin.ibm.com!jfh From: jfh@greenber.austin.ibm.com (John F Haugh II) Newsgroups: comp.unix.aix Subject: Re: dd | remsh dd under AIX 1.2 Message-ID: <6603@awdprime.UUCP> Date: 11 Apr 91 20:44:04 GMT References: <17290@sunquest.UUCP> Sender: news@awdprime.UUCP Organization: Best Care South of the Red River, LCC, Austin, Republic of Texas Lines: 26 In article <17290@sunquest.UUCP> jew@rt.sunquest.com (J.E.Ward) writes: >I have tried several times and ways today to do something I've done on >lots of other machines with no problem, essentially: > >dd bs=1024k if=/dev/rmt0 | remsh HostWithTapeDrive dd bs=1024k of=/dev/rmt0 [ stuff deleted ] >Can anyone tell me why this doesn't work? As I said before, I've done >this sort of thing in the past on other systems with no problem. >Thanks in advance... The read by "dd" on the remote side isn't reading 1024K most likely, so when the third record rolls around, it writes some odd amount. Try the following - dd bs=1024k if=/dev/rmt0 | \ remsh HostWithTapeDrive 'cat | dd ibs=1b obs=1024k of=/dev/rmt0' I've used this in the past on random collections of AIX systems and it works just fine. -- John F. Haugh II | I've Been Moved | MaBellNet: (512) 838-4340 SneakerNet: 809/1D064 | AGAIN ! | VNET: LCCB386 at AUSVMQ BangNet: ..!cs.utexas.edu!ibmchs!auschs!snowball.austin.ibm.com!jfh (e-i-e-i-o)