From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: eshell/tramp slurm use case Date: Thu, 04 Oct 2018 10:33:00 +0200 Message-ID: <87zhvut8lf.fsf@gmx.de> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538641906 17969 195.159.176.226 (4 Oct 2018 08:31:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2018 08:31:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Tim Ransom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 04 10:31:42 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7z2s-0004Ym-0e for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 10:31:42 +0200 Original-Received: from localhost ([::1]:54674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7z4y-0006UO-JF for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 04:33:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7z4O-0006U7-KF for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 04:33:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7z4I-0001yG-By for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 04:33:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:32781) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7z4E-0001t0-Fk for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 04:33:08 -0400 Original-Received: from detlef.gmx.de ([212.91.243.249]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lj25i-1faJXP2wVq-00dEsp; Thu, 04 Oct 2018 10:33:01 +0200 Original-Received: from detlef.gmx.de ([212.91.243.249]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lj25i-1faJXP2wVq-00dEsp; Thu, 04 Oct 2018 10:33:01 +0200 In-Reply-To: (Tim Ransom's message of "Wed, 3 Oct 2018 10:13:28 -0400") X-Provags-ID: V03:K1:W/wLLVpr7xHS55zzPvnhaP41DGQf8WXxPyj7v0vEbwvmGLvXFJU 1gJDR+To6kR6QCDaNw8h/ahuEP/3emyiwpsdT0Og1SRVJ18nnQlxxvwqcWVDO+gofAkgnT6 TXTLfbCFo+WhK69UeXE2QcC1dtbifz6oofSlSKU6nG0+2jhfQMZX7JnFkMXkuNUozgdjrgp oQXMmSe4P2OiEysipBr5Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:TWA+i5t3SxU=:P9E+xLqyMqFnLIl7C4yNXq riSlMyOCetkhlJgnl7xPBSzDE9eEVzWeiz6ipS6XuVpqTShXSGHOYxmU6YRjjHtAuu+zUXODa 02BQYRxBFrBoxN2pwwjYjZGTaHVh77CgEPP03jOH9QTa7eG9D+fo/21B0l+8ks6qR+MNxo0uA zFG1h3jdIYfMbT0kvFZazKUoQlkGSIofmXy3puSo3+fnH7YvsVUPChH//ayazMV0x0zrrkyLk ZKQlFIEJUKwG/5zyQgaReEw2VoKWkRBXXp8ACIsgCakXO1RBQ+nfJvXkcQCjjo09CVRR3bwUz q4bwm1YzOVdgN57e5SyazWs7XykuZoReqNCrL4t4PwE6WvET+jF9s5JKVKchvuLwkezbY5rCR ifdAepV96wV7Qjiek+fuvx+FpeZyRj2NYstJuM0TSzGYDE0KY/wZ0qKdiA560nPJimrHs0JBP pJXDCg8oXX/sEybCd/8ktcq4I2i1/cW/dDROFezrul69/PXCvnqD7fXPki8FXc/bfvI+nhFG2 clhsX74fPT01f3eKBvMFAg1RXRC+5bgnuatggoJJaXBeLUC4hdi6z3YzyUY6NhOX2Zh7spu9O 6AfbpOiOznnf01NDk1sR13bzagg0JcJTPDFqSEzb8rUai2wqSzjWM9WKXKPUyiAmPiLht/eo+ bKbXdnBONiKuh5lVr4ofiJ0CIvFbDJvH1fZALZMbd9cQd+MV+iOWTE2GMsK96Kd7k5vh9ktcI 3PTQNJkO7sHvzvP6Bp+Odf0PHIjfiCwSKVbQz5qmuUxWycirB1g39ZW2PNfXXcMxdgoRX5s+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118109 Archived-At: Tim Ransom writes: > Hello emacs people, Hi Tim, > I like to use eshell on my local machine, and that is going great. I will > also use it and tramp to do things on a few servers. One of the servers I'm > using has slurm installed as cluster resource manager that I use to test > jobs, but when I `salloc -w ` eshell falls back to dumb terminal > behavior. > > Is there a way I can have eshell trigger a term when I run the command, or > better yet keep using eshell with a resource manager like slurm or torque? Neither I don't know slurm in detail, nor I do run a slurm installation for testing. However, maybe it would help to add "salloc" to `eshell-visual-commands'. > A second smaller question, I'm also relooking at my prompt and would like > to access the current hostname similar to the user-login-name variable. Is > there an equivalent or should I parse the eshell/pwd? See `eshell-prompt-function'. You might be able to write your own prompt function. For remote directories, use (file-remote-p default-directory 'host) and (file-remote-p default-directory 'user) > Thanks for any help! > > -Tim Best regards, Michael.