[CentOS] ssh & ksh question

Tue Aug 9 17:35:45 UTC 2016
m.roth at 5-cent.us <m.roth at 5-cent.us>

I need to run a report, source file on system 1, on system 2. I'd like to
do this in one script, not have a second script to run it.

Now
cat script | ssh system2
works fine. But no matter what I've tried, 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... *but* I think it's seeing "\n" as an eol, and complaining, of
course.

Suggestions?

      mark