From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6ZspBF/Rxl57aQAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 19:07:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IEEsO17Rxl6aXwAA1q6Kng (envelope-from ) for ; Thu, 21 May 2020 19:07:10 +0000 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 9CE8F9404E0 for ; Thu, 21 May 2020 19:07:07 +0000 (UTC) Received: from localhost ([::1]:56586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbqX2-0004Md-VV for larch@yhetil.org; Thu, 21 May 2020 15:07:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbqWe-0004L3-2C for emacs-orgmode@gnu.org; Thu, 21 May 2020 15:06:40 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:45221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbqWc-0007CA-Qi for emacs-orgmode@gnu.org; Thu, 21 May 2020 15:06:39 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B7F2AC95 for ; Thu, 21 May 2020 15:06:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 21 May 2020 15:06:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plantarum.ca; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=eUKRQtUSfl13MQ8r9wNs0PWVjXsyqgYeg43CtFuwGxc=; b=FZGZj+qL HEhcAf6fbB1w7w+RkgFkw/Ewij0GBZ4rvBJ5vsZCaQ78iND9IRuteS5G+jTkwl4W JV2f53EdXGMeWtvd2wINqZSsyruXk3elUYYg4jez/dCE4tHuzs1V3RZa3kvFXRcp 9KPiQ+mChAYBDd48/RJGp1DGWtg7WKt1iSPDj2qi+opBlWgrOk8ALLCQrMzC+IE0 x4WhbmmfNEWAn3H7ZrRBHRVrNLKGyvjqt994ydNUZHGbnDsKteLlmFbf9i8GO+MT Ayw0IrrvgFRf8VxtVV1LtrYv+wdGQSMgwora/MPW1KCXSYV653UWDxvDSe0gNQx5 9QLE31vD/rPXEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=eUKRQtUSfl13MQ8r9wNs0PWVjXsyq gYeg43CtFuwGxc=; b=As4bmZ4r44QB0IGuZR4ejU/ZX2O0vPWXDrCnQ78Q/nWoq 0yE4BlZHhNr5wPxN1CyfDaWU5GR9JFmmRQfl/dnJ0RRU+dtF5NUUyovO4AHltFpT 0/gtvrPovfGnVKhdxMB5LjUUKeJRdknSdEW3sTwLX7L4lwRsC6vZmWtDaRSU6Q1B VOI8EMVlNoXXuzDQI9Ihvl7Yl5szZC02R+Z4c74TYxBBzdNe+b8FDmRwMowV9+Sj BA6z0aXJByEE+3BjVzFmPiKM2QeZYST1k33IqyN3nA05hXpzr9k0ai55Adpu4HhX PadFLIsHY3tyzWjnwQB6dCf1n6ZSelkTk7JrxU5vw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduuddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegfhffvufffkfggtgesthdtredttdertdenucfhrhhomhepvfihlhgvrhcu ufhmihhthhcuoehthihlvghrsehplhgrnhhtrghruhhmrdgtrgeqnecuggftrfgrthhtvg hrnhepjeeuvedtgfffjeefffdvhffghefgjefhgedvleevveetveeigeelvefhkeduveff necukfhppedvfedrvdeffedrkeejrdduvddtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepthihlhgvrhesphhlrghnthgrrhhumhdrtggr X-ME-Proxy: Received: from slim (23-233-87-120.cpe.pppoe.ca [23.233.87.120]) by mail.messagingengine.com (Postfix) with ESMTPA id E58CD328005E for ; Thu, 21 May 2020 15:06:34 -0400 (EDT) User-agent: mu4e 1.3.10; emacs 26.3 From: Tyler Smith To: "emacs-orgmode\@gnu.org" Subject: running code with sessions on remote computers Date: Thu, 21 May 2020 15:06:33 -0400 Message-ID: <87eerdnm4m.fsf@plantarum.ca> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=64.147.123.25; envelope-from=tyler@plantarum.ca; helo=wout2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/21 15:06:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=plantarum.ca header.s=fm3 header.b=FZGZj+qL; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=As4bmZ4r; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: ia+dk9a+DKsm Hi, I am trying to run some code on a remote machine. This is R code, and uses the `:session` argument so that all blocks in the file use the same session. This works fine when I ssh into the machine and open Emacs running on that machine. However, when I use tramp from my local machine, everything works, except that the session argument is ignored. The top of my file looks like: ``` #+PROPERTY: header-args:R :session *R-sdm* * Current code #+begin_src R setup :session *R-sdm* options(java.parameters = "-Xmx25g") library(raster) library(dismo) #+end_src ``` I normally set the `:session` argument only in the file `#+PROPERTY:` line, but here I added it to the code block header as well, after it didn't work without it. It didn't make a difference though. What I see when I evaluate the code in this block: I'm prompted for a directory to start in, and the new R process is started there, with the name `*R-2*`. If I evaluate another code block in the same file, I'm again prompted for the directory, and a new process is started there, with the name `*R-3*`. Note that there is no session named *R* running on the remote machine, although there is one running on my local machine. What I expect is to have the R session names `*R-sdm*`, and to have the same session shared by all code blocks in this file. My questions: - is it possible to run code blocks in a session on a remote machine? - if it is, how can I approach sorting this out - is it an orgmode problem, a tramp problem, or an ESS problem? Thanks! Tyler -- Tyler Smith plantarum.ca