Skip to main content
4 events
when toggle format what by license comment
Aug 2, 2021 at 10:55 comment added Kusalananda Passing the script on the standard input of ssh is exactly the same as using a here-document as in your question. The only difference is that the here-document that you use in your question is unquoted, leading to the errors that you see. The other answers are pointing this out. It's further unclear why you set servers in your loop.
Aug 2, 2021 at 10:29 history edited MayD CC BY-SA 4.0
Updated piece of sample code.
Aug 2, 2021 at 10:21 vote accept MayD
Aug 2, 2021 at 10:21 history answered MayD CC BY-SA 4.0