emacs-orgmode
[Top][All Lists]
Advanced

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

Re: bash source code block: problem after ssh commands


From: Bruno Barbier
Subject: Re: bash source code block: problem after ssh commands
Date: Sat, 18 Nov 2023 09:36:32 +0100

Max Nikulin <manikulin@gmail.com> writes:

> On 25/10/2023 18:17, Alain.Cochard@unistra.fr wrote:
>> By contrast, it works with this one:
>> 
>>     #+begin_src bash :results output
>>     sshcochard@fruc.u-strasbg.fr  "echo foo>foo_file" ; echo "bar"
>>     #+end_src
>
> What about
>
>     #+begin_src bash :results output
>     ssh cochard@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]