From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 qsIdKcR3WGVl2gAAG6o9tA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 09:37:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qsIdKcR3WGVl2gAAG6o9tA (envelope-from ) for ; Sat, 18 Nov 2023 09:37:24 +0100 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 609A5367B3 for ; Sat, 18 Nov 2023 09:37:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJXJtZHI; dmarc=pass (policy=none) header.from=gmail.com; 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=1700296644; a=rsa-sha256; cv=none; b=DyXLGpOw981AOrq0bfZS7lIpeW8Y31fEaJSBHGh82E9f/wV+G2GBozceXWMPp9GiHlAL0h nxu3BxjOAtGz6YGUm5RAvxSKgXR975PQ75m3ybKzrpW1mksI1MvZqyHRfUcQ4GA5snaOYL BhxvEoAJMhLobiq6css0HB9FHJIlvJjyfPFQ+v4H18Sg5Ex7V3GJoeEfyapBhO8+fLae4g u9ZDLuEQx1wNueQvqILLOjthgnsA6KZIOEqUbZOv1DKe9X5X4nlBixX6kIRdzL8FSyIhwx n0f0R/PW6y7rG3D9wwMNeA5lkgYeb60lBayAC4hPc6mipkrcqBrB6bYyoEboBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJXJtZHI; dmarc=pass (policy=none) header.from=gmail.com; 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=1700296644; 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:dkim-signature; bh=Ibq4MNPsoXkh368kBKfIsAZLc/oBgi5GU4oEUqUC/Ac=; b=O/eC5dbzWrXYJx7bpK+LNdr6RKW7Le2k32I+fpYyukab5SfHweSSk1DDcXCgkM81THMyQs gnCo4A+CV3x/hPcrydhNUjtAPIbisshySxZWsU0pqvlOVtwhh5GtA+DOMB9O+pMssIUpaf ahw8oMTVxTa2HFjD92o5XsqSJVRVb7eG/vIgpAbLiACVYIuNqFtE1CY9hk9qYnJy+0QFmO 3MGQmD8C1OXCTyfLkRRQ/bOWL6rOUv+SdDs2U5zHQtojan1baS2LDTLLnUgPqx6akUjUCQ l7xIvuSr/GjBBkfdqGHe9fcUJr3ENTGtk1wsun13TMJEhGlqKYRUg5wkwsFrZw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Gog-0005f1-HR; Sat, 18 Nov 2023 03:36:38 -0500 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 1r4Gof-0005et-QE for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:36:37 -0500 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4Goe-0002Ke-A8 for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:36:37 -0500 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507bd64814fso3925812e87.1 for ; Sat, 18 Nov 2023 00:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700296594; x=1700901394; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ibq4MNPsoXkh368kBKfIsAZLc/oBgi5GU4oEUqUC/Ac=; b=AJXJtZHIIk5YMsetXgkWt4OCaPqOleHCeoNDDO05sY/izrudAXGMQOLstYueDa6wpB UOlOvxTSFc7WoEA9Hr5yLOSc+gh1Py+m17aL0DMvMsNHr/RmByWJ5mzJXgxuEo0Sjc5U mXVZTQpSabWRPevWlA9klfXSNxoCfdvmaaYOKJOj6zN/rC87Go7U1eZcbJZ2ImO/uWup Ju33qr3j6rkhvNtWZFS+Ec6Z7qo39do0kd5K9RP25Ba9HBs6/SJbhxzcUkHNRCXuDkfE 63WT/hjkkTUeATJveUjx4cH8ZN9P6A5i2eh5pzcEXvfF5d78MGjHzFcFV8qo/6CXOqN9 h7Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700296594; x=1700901394; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ibq4MNPsoXkh368kBKfIsAZLc/oBgi5GU4oEUqUC/Ac=; b=loDtwGmyYHNfLVuND0zMmNPiDw33ilRoW9NOHMBmgXgt/OcDztl7Eq94Zy+RlzBGKI E+uYv26YFtDbX9/ul2lOoStSfHebVAyXdRZ4mPioktt1PrprjYMs280aUyvC2okbMwwV pA1n2w6+iQCKRNOedLwCqIGviQ0iaZTYJe25QOIFpM3GgDRXavWJAvHU+rilKObrIKFi GkZ6/FLclfNV8TDzGZZDjkSKiMCbeethUqzw5hFZDYnTs9smP3y2pQlsnwDN7xTDMh1K SNDCA6QBrdr7LVBbMWzralLN4nbjjp1DmxOHemSUE1ElxnaCEMHLmaiswp2h/mxA0Ebq KUtg== X-Gm-Message-State: AOJu0YwvuC30rs42uee8ZKzL7s3TxcL4VFdQD4wl9LFInffPWz6l4qkF ENaTJeoSvjtHlF05Utmf13g= X-Google-Smtp-Source: AGHT+IEipR31V4z9F11g/QVXAKMr8aJiqhscv5lv0swU3ydsRVVT1Yu0vBmG63aZeP8pSNrB3RySZQ== X-Received: by 2002:a05:6512:48d6:b0:509:49f1:b7c8 with SMTP id er22-20020a05651248d600b0050949f1b7c8mr1437414lfb.21.1700296594086; Sat, 18 Nov 2023 00:36:34 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id t17-20020adfe111000000b003232380ffd5sm4711878wrz.106.2023.11.18.00.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 00:36:33 -0800 (PST) Message-ID: <65587791.df0a0220.ea5fe.0a38@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 18 Nov 2023 09:36:32 +0100 From: Bruno Barbier To: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: bash source code block: problem after ssh commands In-Reply-To: References: <25912.63830.726070.953843@gargle.gargle.HOWL> Date: Sat, 18 Nov 2023 09:36:32 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=brubar.cs@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: 609A5367B3 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.59 X-Spam-Score: -8.59 X-TUID: oB9rTksNikzC Max Nikulin 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