From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KC2wE657OmVbigAA9RJhRA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 16:46:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KC2wE657OmVbigAA9RJhRA (envelope-from ) for ; Thu, 26 Oct 2023 16:46:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1192E25254 for ; Thu, 26 Oct 2023 16:46:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698331566; a=rsa-sha256; cv=none; b=IH71LghU1m1l+btCJ+ZV2J4XZYQgup38dgvLeEfMfBlnZj2ASS//qwLUDRGhS+rYsxV7zM NMtM5PTDuf2FCZgSFw+F1S0DFRB1EGnxbNcQYptHHzxTOSKq42wxCPgQxi18PnN2j79xAb Pbgj5dw+7qYs8XytHSXKekWcmlSGPKjlLUt2kbLftiKQdv8RQuTiY0vinvp/4T2NeQzmFm diHCvAgbp70HjgaIsIOqE/ACrwQCf/c1ICN0Hz4U1rDb70XOV/nvXM8969nSQPKG5mE++2 XOxlKrCMXn26sF6huadxP9T0O7dgIBJ73TRTcZS5KUyAN8LjOFfUoVcoeCAiZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698331566; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=6Mnp4nuQqOhF1bz+7dTtzn3H2oXrvkIOPDiItwHN/2I=; b=PHyCglaDlGJVQGdgSL5ewj3tJz8szXSWbo05WKBlWY3wWRT1T59b0LSZ8CuJxwRroWfwd6 2fwpPqp/f2vdU5aNdwLhGVI2dLbOCSogVAifoQOBSx4lBjTdoMPH7IXcV8ww0DSGeFbDXd dEI7vTJiLupZ4QYd4bRG6+HDqCdG9UsqVI1REFl+LEv8T7yYPOl2NaArFfLzioyN6SBvEn YUhe1TSjt43CII9J3Ht9GU4UVSURny1BuXZOnZwjQEEXa6Ydb9EMSoSh1HOtlH5nRfzwEM stRdIg0WuRUprGcChvvgidKlNVNrmYripnZAoojTctZxgZxNltbUa4ADCYi+uw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw1bh-0003pS-8v; Thu, 26 Oct 2023 10:45:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qw1bf-0003p3-B0 for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 10:45:07 -0400 Received: from se13.route25.eu ([2a00:f10:121:a00:1c00:efff:fe00:1854]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qw1bY-00021f-TU for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 10:45:06 -0400 Date: Thu, 26 Oct 2023 16:44:51 +0200 From: Russell Adams To: emacs-orgmode@gnu.org Subject: Re: bash source code block: problem after ssh commands Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org References: <25912.63830.726070.953843@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25912.63830.726070.953843@gargle.gargle.HOWL> X-Originating-IP: 185.87.184.57 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.184.57 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.05) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/ejBZ1f37LGcLG/RbYN5OTPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xiExUbNqvmdkLSOzf1W2Y3z8hkeSqZT0W1YMl0fRDa99cV PSoHm0W/3adFfiYl2nvXF9vtJtlIioqvkCcB3zVl/T4GcPvCLvSpAEEGy7kYxsD3QRUnhlexiXT3 xXuXeIhevFP+kOiMW3ZJfjMJYMEj+gaXrHkgRC7/tI3CjXmVyugwE13xixtjd0Y+1GQPQc7Hh0cQ L0Ci0sRm4Wh/iZxmZw2OUofLfB7s8QYvnn3mfsztdQUSqk/AeLi65+4s/LrywTM2yEHEhvC9Izsy /NENTMQ3Kg3hL2oXz5A5E5R/dS4GkJ5hfB+qWugfDEytZYoACfRtBjLzEjgIZNLWhI/Mshn3T8Ox KyIrAogwLlirll+u0Sc2bgjgy6NE5WzPnrJ1fJyKyenPq733oZ8bAyJmHQrtppYmxMktfUX7kfB+ UdezYqxGMqsKjARq8PBC4qgxMmglBiLsgrvXOb7qEGUwgxHIagHkgJmlqPNWnLI1oovhSJcbnX/H QqL/X9rNCJCc6iESJvKm1NV8gkr+Wu8ScVDXinOVyuIpITQ9z3M3DO7OWuqF1+w/pTOKTb9S094O 5ldb4EwDPpdfe0QRwC0u1rk5v+IPH2THdO5AuDiYOazP5fdUIhzUho6JAmyBJ3E5y9phFQNqs3ow 7qoYE68Mb9qUxf0isHFqyjYDGBkd2y32EoSnB0KQ6B3xt8UP9IrQLp/miaSDdXxJiAZb1EzkDw0J UO/SMw1JqaZJdGBLjwxu/yA+VEAsNuLImG6F+OM3mvG1NrhM9RvYQCjqi6+UctgzcDoFd+96Xw4Q UNtTncaOn0+WJUUa3BJTNKQ18zDN24asJdvYl1Y19r9fXlcpDneFtYF4v0IUhnwA7zUt/ygkKg3C UVSz51jczPLYUPONvxgu6jFRoaLzVpT+CP36s6RbLfB6BI3XJUys1lM3IMGhDC7qKEsgLqHNXMxe jlB49DjiWowOnKvI8aF4jzAuZNIARVagEMhjyGL5llQ69151eclHOr67cHgLgz4Hvn0= X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a00:f10:121:a00:1c00:efff:fe00:1854; envelope-from=rladams@adamsinfoserv.com; helo=se13.route25.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1192E25254 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.99 X-Spam-Score: -5.99 X-TUID: 7X67Aty3KC0i On Wed, Oct 25, 2023 at 01:17:42PM +0200, Alain.Cochard@unistra.fr wrote: > #+begin_src bash :results output > ssh cochard@fruc.u-strasbg.fr "echo foo>foo_file" > echo "bar" > #+end_src I know that Ihor has already reproduced, but are you using an SSH key to connect, or entering a password? If entering a password, I'd expect there is some mixup. That I defer to Ihor. If you use an SSH key for passwordless access, try adding -n (ie: "ssh -n derp@host mycommand"). The "-n" flag helps prevent the remote command from interfering with your local terminal by redirecting /dev/null as the remote stdin. I have to use this commonly in systems administration, scripts, and tools like Ansible. Thanks. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com https://www.adamsinfoserv.com/