From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2GUxNlfhVWUaAAAAG6o9tA:P1 (envelope-from ) for ; Thu, 16 Nov 2023 10:31:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2GUxNlfhVWUaAAAAG6o9tA (envelope-from ) for ; Thu, 16 Nov 2023 10:31:04 +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 9C79435744 for ; Thu, 16 Nov 2023 10:31:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eKy6nZJF; dmarc=pass (policy=none) header.from=posteo.net; 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=1700127063; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=qxZS8L/yTYJblfWcsAurxGJrs3+QDMe5EndeOvYTqF4=; b=tGxyMAdpqd0fAqX/SBZz9q5mKRB4UFUALp2xtX8zvw9qEm4G6AGDUjZLuKO1GVc/ouWuVr NhI+FSgDx1HqkKkBJTNMvK+7o89Q0dPTOtueDOiiwGH2CRtwuUoJkU8yEtwHMAOr3weHod eb2naNJusUVa02RRJC6AOUBi7nQjHO6fh8ySP0+B0U0yWaDhuTJNXxxGd2Yn/T2cDyOKys A4wwGlP8ACjAsmy77H4TCUCO3uEkDnZkt8eH+s2LU5f38Q90aENQZPS/D60rHtqQlSdqrp R/X6eWzefjq6LjeWhaYNl5K94SI/uWceh/AasPOBdOOPQquCms8MOkUK95HznQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eKy6nZJF; dmarc=pass (policy=none) header.from=posteo.net; 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=1700127063; a=rsa-sha256; cv=none; b=jagiOJNyKLGK1/RyKoMmBvtF4JJFEeWSZ0FlcCPJHYgC/0YgZ9N06gS1qhuxewcqVHMtdR uckpLIOsH7YNZtaEUDrWSVqYfhCvbLCY/qJ2KJeWuWj0kjulW3OgqHEA5SIlFbKMf8qERH DDmODgP++46e6mlfuFOlGZIlMbLPpEs++QpCVmAAA3cg+Dc/n7YGl32gf3rpJ7tqZ92ekb 5MCmpqJuQGLhS0Qt2CZ3rSbDAiKpIyzvWQ88yGcqvUY8+GGe03JONc/Ll4b1XAwdZnovAg lyYMUDOKwHe/xJxZ6NIOCYWUM4QkO541K8MFlp6DSPk5TUNa2vQW69pkRFvTrQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Yhg-0005SA-Sw; Thu, 16 Nov 2023 04:30:28 -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 1r3Yhd-0005OX-Gk for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 04:30:26 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3YhR-0001Oq-Ax for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 04:30:24 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 33A12240105 for ; Thu, 16 Nov 2023 10:30:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700127007; bh=mV/3uVU8nHY+LVQewRc72shMmrFIIH1cl2xvPBo3pT4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=eKy6nZJFlULlDvuWgOPlkbYnajfWdFJVGi9oMVLP/w5Zhg7/XC+1QBLxgXLALs6DM yP5GTiDrWt7ANncbDhc0Xd0eoQdPmkfW2rx0E7iIfseZSNRDots5163bavqK6scpqq 5i3oL7phTv83tVDt0NukFZblYLMh1nmhabPBqRj1WSeZJhU9oY75jXtMlqyEO9LObh IuljzU0+9W+woKlheE7/wd4nv0WE/DILQ5pFuNsi+5tn2eF7x/ndZdIhsry47fzUot xZkf8sG3dYguyn9JD+8JItWsu1tvihRsdmdz0Ul/ByWPZ9uFZ+S88Xf8cBh1ZrsaUp r6l3wNpKCQRdQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SWFB623dGz9rxK; Thu, 16 Nov 2023 10:30:05 +0100 (CET) From: Ihor Radchenko To: Matt Cc: "emacs-orgmode@gnu.org" Subject: Re: bash source code block: problem after ssh commands In-Reply-To: <18bd3d38ff3.115b786cb2560022.7704006411630399228@excalamus.com> References: <25912.63830.726070.953843@gargle.gargle.HOWL> <87bkcmlor9.fsf@t14.reltub.ca> <87o7gldb78.fsf@localhost> <25914.26693.101108.954656@gargle.gargle.HOWL> <87fs1xbis1.fsf@localhost> <25916.238.191509.652552@gargle.gargle.HOWL> <653f8a93.050a0220.f2202.5816@mx.google.com> <87zfzr2ejj.fsf@localhost> <18ba5e231e3.f989cde147196.3154436412643995109@excalamus.com> <875y2e2b9y.fsf@localhost> <18bb07473e2.1007b1565819307.6938164403009000496@excalamus.com> <877cmr2ke4.fsf@localhost> <18bb5337346.dfcd5ebb1139895.801408740607633332@excalamus.com> <18bd3d38ff3.115b786cb2560022.7704006411630399228@excalamus.com> Date: Thu, 16 Nov 2023 09:32:20 +0000 Message-ID: <87fs169h7f.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -8.72 X-Spam-Score: -8.72 X-Migadu-Queue-Id: 9C79435744 X-Migadu-Scanner: mx10.migadu.com X-TUID: i9lSkt4LUB6i Matt writes: > So, rather than start a comint and then ssh from there, it's possible to let Emacs start the subprocess, manage the ssh connection, and just read that. Emacs makes a buffer from a network stream by calling start-process` using `shell-file-name`. `org-babel-shell-initialize` closes around `shell-file-name` with whatever shell language is used. Therefore, we could provide header arguments to pass parameters and the destination to ssh. Or we can make use of TRAMP as we usually do to access remote environment. IMHO, it is more reliable as TRAMP takes care about arranging all the Elisp FS interaction to work on remote system. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at