Re: ssh & ksh question [RESOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Gordon Messmer wrote:
> On 08/09/2016 10:35 AM, m.roth@xxxxxxxxx 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

Actually, the script itself is ksh. However, finally getting to email with
my manager, he just did it the simpler way, with a separate script to run
it. And the reason I didn't realize that his script was working as
designed is that unless I fed /dev/null into his script, rather than send
a email, it printed the report to the screen....

      mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux