emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas <tjandreas@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Prompting for user name when running block on remote machine
Date: Sat, 5 Jul 2014 01:17:20 +0200	[thread overview]
Message-ID: <CAC=rykeLLoDKJWG8G7vHm=hAXCkn=JdpAr8TYbQcBnh8UA+EWQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

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 <https://plus.google.com/s/%23%2Bbegin_src> sh :dir (concat
"/ssh:" (read-string "login name: ") "@some.other.place:")
     echo $USER
#+end_src <https://plus.google.com/s/%23%2Bend_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

[-- Attachment #2: Type: text/html, Size: 1150 bytes --]

             reply	other threads:[~2014-07-04 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04 23:17 Andreas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-07-08 20:37 Prompting for user name when running block on remote machine Andreas

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to='CAC=rykeLLoDKJWG8G7vHm=hAXCkn=JdpAr8TYbQcBnh8UA+EWQ@mail.gmail.com' \
    --to=tjandreas@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).