all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Tim Ransom <ransomtim8078@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: eshell/tramp slurm use case
Date: Thu, 04 Oct 2018 10:33:00 +0200	[thread overview]
Message-ID: <87zhvut8lf.fsf@gmx.de> (raw)
In-Reply-To: <CAArSJSbc_L-RQWpr0V6GszOiBDWb=bsjDSxLbcmdUHeK_H-Aiw@mail.gmail.com> (Tim Ransom's message of "Wed, 3 Oct 2018 10:13:28 -0400")

Tim Ransom <ransomtim8078@gmail.com> 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 <node>` 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.



      reply	other threads:[~2018-10-04  8:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03 14:13 eshell/tramp slurm use case Tim Ransom
2018-10-04  8:33 ` Michael Albinus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhvut8lf.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ransomtim8078@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.