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

2012-03-19 Thread Eric Schulte
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

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

2012-03-19 Thread Leo Alekseyev
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

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

2012-03-06 Thread Andreas Leha
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

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

2012-03-05 Thread Eric Schulte
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

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

2012-03-04 Thread Sylvain Rousseau
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.

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

2012-03-03 Thread Andreas Leha
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?

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

2012-03-03 Thread Eric Schulte
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

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

2012-03-03 Thread Nick Dokos
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

[O] Is it possible to run shell script src blocks as root or to export individual blocks?

2012-03-02 Thread Leo Alekseyev
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?