From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Is it possible to run shell script src blocks as root or to export individual blocks? Date: Sat, 03 Mar 2012 07:25:32 -0700 Message-ID: <87pqctkahb.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3qF1-0001DL-UQ for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 09:47:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3qEz-0001Av-Nd for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 09:47:23 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:37828 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S3qEz-0001AN-DN for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 09:47:21 -0500 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: Leo Alekseyev Cc: Emacs orgmode Leo Alekseyev writes: > I was wondering if there was an easy way to execute some shell > commands contained in a src block as root. Alternatively, is there a > quick way to export _just_ that one source block to a temp file so > that I could run it as root manually? > Just call org-babel-tangle with a prefix argument and it only tangles the current block > -- Eric Schulte http://cs.unm.edu/~eschulte/