emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Running a sudo in a #+begin_src sh fails to get tty and askpass
@ 2013-02-09  7:24 Emilio Torres Manzanera
  2013-02-09 10:10 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Emilio Torres Manzanera @ 2013-02-09  7:24 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Running a sudo in a #+begin_src sh fails to get tty and askpass
  2013-02-09  7:24 Running a sudo in a #+begin_src sh fails to get tty and askpass Emilio Torres Manzanera
@ 2013-02-09 10:10 ` Michael Albinus
  2013-02-12 19:12   ` Emilio Torres Manzanera
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2013-02-09 10:10 UTC (permalink / raw)
  To: torres; +Cc: emacs-orgmode

Emilio Torres Manzanera <torres@uniovi.es> writes:

> Dear list,
> I want to compile (C-c C-c) the following code
>
> #+begin_src sh
> sudo apt-get update
> #+end_src

#+begin_src sh :dir /sudo::
apt-get update
#+end_src

> Thanks!
> Emilio

Best regards, Michael.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Running a sudo in a #+begin_src sh fails to get tty and askpass
  2013-02-09 10:10 ` Michael Albinus
@ 2013-02-12 19:12   ` Emilio Torres Manzanera
  0 siblings, 0 replies; 3+ messages in thread
From: Emilio Torres Manzanera @ 2013-02-12 19:12 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-orgmode


>
> #+begin_src sh :dir /sudo::
> apt-get update
> #+end_src
>

Thanks! 
Emilio

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-12 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09  7:24 Running a sudo in a #+begin_src sh fails to get tty and askpass Emilio Torres Manzanera
2013-02-09 10:10 ` Michael Albinus
2013-02-12 19:12   ` Emilio Torres Manzanera

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).