Leo Alekseyev writes:
> On Mon, Mar 5, 2012 at 10:24 AM, Eric Schulte wrote:
>> Andreas Leha writes:
>>
>>> Eric Schulte writes:
>>>
Leo Alekseyev writes:
> I was wondering if there was an easy way to execute some shell
> commands contained in a src block as root. Alternati
On Mon, Mar 5, 2012 at 10:24 AM, Eric Schulte wrote:
> Andreas Leha writes:
>
>> Eric Schulte writes:
>>
>>> 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
Eric Schulte writes:
> Andreas Leha writes:
>
>> Eric Schulte writes:
>>
>>> 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
Andreas Leha writes:
> Eric Schulte writes:
>
>> 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
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.
Eric Schulte writes:
> 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?
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
Leo Alekseyev wrote:
> 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?
>
You could set up sudo so t
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?