[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
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), (continued)
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Bruno Barbier, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Matt, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Bruno Barbier, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Matt, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Bruno Barbier, 2023/11/18
- Re: bash source code block: problem after ssh commands, Bruno Barbier, 2023/11/18
- Re: bash source code block: problem after ssh commands, Matt, 2023/11/18
Re: bash source code block: problem after ssh commands, Matt, 2023/11/06
Re: bash source code block: problem after ssh commands, Max Nikulin, 2023/11/18
- Re: bash source code block: problem after ssh commands,
Bruno Barbier <=