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