Mark Post wrote:
It's surprising because it's inappropriate behavior.  The command you show
will work, but should not.  This, however, should work:
ssh zos 'psql somedb \'select * from sometable limit 45;\' '
(or whatever the appropriate quoting would be.)

How do you define "inappropriate behaviour" here? what happens is what I
expect to happen.

Probably, most OSS hackers would consider implementing USS in EBCDIC to
be "inappropriate conduct," if they knew it had been done.

Note that my echo command was an example only, as was psql on the other
side. In practice I'd be likely to have something more elaborate
generating the input for something on the other side that doesn't have
the commandline alternative.

btw What would happen if I used psql on USS/Linux to talk to a
postgresql server on Linux/USS? I'm thinking it might actually be clever
enough to translate, but I'm not sure.


Mark Post

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
John Summerfield
Sent: Tuesday, February 20, 2007 5:52 PM
To: [email protected]
Subject: Re: scp question.


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

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



--

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