Max Nikulin <maniku...@gmail.com> writes: > On 25/10/2023 18:17, alain.coch...@unistra.fr wrote: >> By contrast, it works with this one: >> >> #+begin_src bash :results output >> sshcoch...@fruc.u-strasbg.fr "echo foo>foo_file" ; echo "bar" >> #+end_src > > What about > > #+begin_src bash :results output > ssh coch...@fruc.u-strasbg.fr "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