[comp.unix.aix] dd | remsh dd under AIX 1.2

jew@rt.sunquest.com (J.E.Ward) (04/10/91)

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

This aborts in the following manner under AIX 1.2:

AIX instfe 1.2> dd bs=1024k if=/dev/rmt0 | remsh rt dd bs=1024k of=/dev/rmt0
dd write error: Invalid argument

3+0 records in
2+0 records out

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...


J. E. Ward	jew@sunquest.com

Confucious say...
He was so narrow-minded he could see through a keyhole with both eyes.

dwight@locus.com (Dwight Tovey) (04/10/91)

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
>
>This aborts in the following manner under AIX 1.2:
>
>AIX instfe 1.2> dd bs=1024k if=/dev/rmt0 | remsh rt dd bs=1024k of=/dev/rmt0
>dd write error: Invalid argument
>
>3+0 records in
>2+0 records out
>
>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...
>
>

I just tried it on my machine, going both directions (dd from local device
to remote and from remote device to local) and the only problem I had was
when I forgot to write enable the floppy I was using.  I don't know why you
had problems with it.  Could there be a problem with the tape drive on
the remote site?
	/dwight

-- 
I didn't claw my way to the top of the food chain to eat vegetables.
	Dwight Tovey
	dwight@locus.com
The views I express are entirely my own and do not in any way represent 

jfh@greenber.austin.ibm.com (John F Haugh II) (04/12/91)

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)