emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Emilio Torres Manzanera <torres@uniovi.es>
To: emacs-orgmode@gnu.org
Subject: Running a sudo in a #+begin_src sh fails to get tty and askpass
Date: Sat, 09 Feb 2013 08:24:16 +0100	[thread overview]
Message-ID: <87txpmeyqn.fsf@uniovi.es> (raw)


Dear list,
I want to compile (C-c C-c) the following code

#+begin_src sh
sudo apt-get update
#+end_src

The following warning/error appears in the Org-Babel Error Output:
sudo: sin tty presente y no hay programa askpass especificado
sudo: sin tty presente y no hay programa askpass especificado
Sorry, try again.
sudo: sin tty presente y no hay programa askpass especificado
sudo: sin tty presente y no hay programa askpass especificado
Sorry, try again.
sudo: sin tty presente y no hay programa askpass especificado
sudo: sin tty presente y no hay programa askpass especificado
Sorry, try again.
sudo: 3 intentos de contraseña 

The translation is "sudo: no tty present and no askpass program specified"

How should I configure Org mode or my system to run this chunk?

I am running ppa:cassou/emacs in Lubuntu: GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-01-01 on nannyberry, modified by Debian

Thanks!
Emilio

             reply	other threads:[~2013-02-09  7:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-09  7:24 Emilio Torres Manzanera [this message]
2013-02-09 10:10 ` Running a sudo in a #+begin_src sh fails to get tty and askpass Michael Albinus
2013-02-12 19:12   ` Emilio Torres Manzanera

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=87txpmeyqn.fsf@uniovi.es \
    --to=torres@uniovi.es \
    --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).