Max Nikulin <[email protected]> writes:
> On 25/10/2023 18:17, [email protected] wrote:
>> By contrast, it works with this one:
>>
>> #+begin_src bash :results output
>> [email protected] "echo foo>foo_file" ; echo "bar"
>> #+end_src
>
> What about
>
> #+begin_src bash :results output
> ssh [email protected] "echo foo>foo_file" ; echo "bar"
> echo more
> #+end_src
>
> ?
For me:
#+begin_src bash :results output
ssh phone "echo foo>foo_file" ; echo "bar"
echo more
#+end_src
#+RESULTS:
: bar
And, telling SSH to not swallow the remaining commands (option '-n'):
#+begin_src bash :results output
ssh -n phone "echo foo>foo_file" ; echo "bar"
echo more
#+end_src
#+RESULTS:
: bar
: more
Bruno