Score:0

Ignore PSA when running command over SSH and expecting a response

gi flag

When I send a command to a server e.g.

ssh [email protected] <<EOS
# run a command that returns an output
EOS

What can I do to suppress the initial feedback e.g.

Pseudo-terminal will not be allocated because stdin is not a terminal.
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-66-generic x86_64)
...
in flag
Possible duplicate of https://serverfault.com/questions/36421/stop-ssh-login-from-printing-motd-from-the-client#38160
Michael Hampton avatar
cz flag
Do you really need to provide the remote command in a heredoc instead of just on the command line?
Jonathan avatar
gi flag
I wanted it to be easy to read as a heredoc format but if there's no way way of doing it then I could condense to a single line
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.