[CentOS] ssh & ksh question

Tue Aug 9 20:04:58 UTC 2016
Gordon Messmer <gordon.messmer at gmail.com>

On 08/09/2016 10:35 AM, m.roth at 5-cent.us wrote:
> it gags on
> ssh system2 <<EOF
> blah, blah
> EOF.
>
> Mostly, I have a multiline awk script in the script, with \ at the end of
> each line



You are probably overlooking that in bash, "here documents" are subject 
to expansion according rules documented in the bash man page, unless you 
quote the word you use as the here document delimeter.

That is, try:

ssh system2 <<"EOF"
blah, blah
EOF