emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Prompting for user name when running block on remote machine


From: Andreas
Subject: [O] Prompting for user name when running block on remote machine
Date: Sat, 5 Jul 2014 01:17:20 +0200

Hi,

I was running in to an issue when trying to run a piece of code on a remote machine.
I run the following:
#+begin_src sh :dir (concat "/ssh:" (read-string "login name: ") "@some.other.place:")
     echo $USER
#+end_src

the idea here was that the code block would prompt the user for the login name and proceed to evalue the code on the remote machine. This works as I want it.
However now when I try to edit the code in the block and press TAB for indentation the block prompts me again for a "user name:" twice.

I'm not sure how to go further from here or why this last thing happens. I'm guessing that the header string is read when the code block tries to determine what code is in there but is there a way to get the behaviour I want without this side effect?

Regards
Andreas

reply via email to

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