[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash source code block: problem after ssh commands
From: |
Alain . Cochard |
Subject: |
Re: bash source code block: problem after ssh commands |
Date: |
Tue, 7 Nov 2023 01:51:52 +0100 |
Matt writes on Mon 6 Nov 2023 19:01:
> I want to confirm, are you able to accomplish your task by using
> '-n'?
Yes. Evaluating this block (with C-c C-c):
#+begin_src bash :results output
ssh -n cochard@fruc.u-strasbg.fr "echo foo>foo_file"
echo "bar"
#+end_src
gives
#+RESULTS:
: bar
(without the '-n', #+RESULTS: is empty). Same conclusion if I
copy/yank the 2 bash instructions in an emacs terminal (M-x shell).
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | [ slot available for rent ]
- 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: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Ihor Radchenko, 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/18
Re: bash source code block: problem after ssh commands, Matt, 2023/11/06
- Re: bash source code block: problem after ssh commands,
Alain . Cochard <=
Re: bash source code block: problem after ssh commands, Max Nikulin, 2023/11/18