help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eshell/tramp slurm use case


From: Michael Albinus
Subject: Re: eshell/tramp slurm use case
Date: Thu, 04 Oct 2018 10:33:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]