Malcolm Beattie wrote:


Here's some more rather surprising behaviour, using just ssh:
        thinkpad% echo -n ABC | ssh zos 'od -t x1'
        0000000000    C1  C2  C3
        0000000003
So the three bytes (0x41, 0x42, 0x43) sent by the ssh client end up
being read on stdin by od as 0xc1, 0xc2, 0xc3, i.e. converted from
ASCII to EBCDIC. There's no scp there, just a stream of bytes to move
around.

Why is that surprising?

If I ssh from my penguin to you z/OS/USS, do I want my commands to be
interpreted as ASCII? Or is EBCDIC better?

How would your command above work at all, if the "od -t x1" didn't get
translated to EBCDIC?

What about something like this:
echo 'select * from sometable limit 45;' | ssh zos psql somedb



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

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

Reply via email to