From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emilio Torres Manzanera Subject: Running a sudo in a #+begin_src sh fails to get tty and askpass Date: Sat, 09 Feb 2013 08:24:16 +0100 Message-ID: <87txpmeyqn.fsf@uniovi.es> Reply-To: torres@uniovi.es Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U44nm-0003ul-2e for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 02:24:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U44nh-00076S-Qm for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 02:24:45 -0500 Received: from fresno.net.uniovi.es ([156.35.11.2]:58107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U44nh-00071I-JK for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 02:24:41 -0500 Received: from CONVERSION-DAEMON.fresno.net.uniovi.es by fresno.net.uniovi.es (PMDF V6.5 #31845) id <01OPZDSXQRKW006YSX@fresno.net.uniovi.es> for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 08:24:16 +0100 (CET) Received: from emilio-despacho (emilio.euempg.uniovi.es [156.35.137.100]) by fresno.net.uniovi.es (PMDF V6.5 #31845) with ESMTP id <01OPZDSXHDGM0060S7@fresno.net.uniovi.es> for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 08:24:16 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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