From: Sylvain Rousseau <thisirs@gmail.com> To: Leo Alekseyev <dnquark@gmail.com> Cc: Emacs orgmode <emacs-orgmode@gnu.org> Subject: Re: Is it possible to run shell script src blocks as root or to export individual blocks? Date: Sun, 4 Mar 2012 18:29:48 +0100 [thread overview] Message-ID: <CAJ8n8315MoMSYZZTZTfVszJgRAD052WsC1HwLFpLuKOKsNrsRw@mail.gmail.com> (raw) In-Reply-To: <CADzxs1k33hfNSkMY2CAFuR4hsQ6LgjHMw++VArqfm4xWnKnEmg@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 231 bytes --] Under Gnome, I'm using this at the beginning of a sh source block: echo -e "#! /bin/bash\n/usr/bin/gksudo -p -m Password" > /tmp/gksudo-stdout chmod +x /tmp/gksudo-stdout SUDO_ASKPASS="/tmp/gksudo-stdout" sudo -A -s Sylvain. [-- Attachment #2: Type: text/html, Size: 286 bytes --]
prev parent reply other threads:[~2012-03-04 17:29 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-03-03 4:40 Leo Alekseyev 2012-03-03 8:55 ` Nick Dokos 2012-03-03 9:19 ` org-babel-execute-src-block deletes its src block Daimrod 2012-03-03 9:42 ` Nick Dokos 2012-03-03 9:54 ` Daimrod 2012-03-03 14:46 ` Eric Schulte 2012-03-03 15:11 ` Daimrod 2012-03-03 14:25 ` Is it possible to run shell script src blocks as root or to export individual blocks? Eric Schulte 2012-03-03 16:43 ` Andreas Leha 2012-03-05 15:24 ` Eric Schulte 2012-03-06 9:11 ` Andreas Leha 2012-03-19 8:42 ` Leo Alekseyev 2012-03-19 14:46 ` Eric Schulte 2012-03-04 17:29 ` Sylvain Rousseau [this message]
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=CAJ8n8315MoMSYZZTZTfVszJgRAD052WsC1HwLFpLuKOKsNrsRw@mail.gmail.com \ --to=thisirs@gmail.com \ --cc=dnquark@gmail.com \ --cc=emacs-orgmode@gnu.org \ --subject='Re: Is it possible to run shell script src blocks as root or to export individual blocks?' \ /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
Code repositories for project(s) associated with this 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).