emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Is it possible to run shell script src blocks as root or to expo


From: Sylvain Rousseau
Subject: Re: [O] 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

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]