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 eric.schu...@gmx.com wrote: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Eric Schulte eric.schu...@gmx.com writes: Leo Alekseyev dnqu...@gmail.com writes: I was wondering if there was an easy way to execute some shell commands

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 dnqu...@gmail.com writes: On Mon, Mar 5, 2012 at 10:24 AM, Eric Schulte eric.schu...@gmx.com wrote: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Eric Schulte eric.schu...@gmx.com writes: Leo Alekseyev dnqu...@gmail.com writes: I was wondering if there was an easy

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 eric.schu...@gmx.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Eric Schulte eric.schu...@gmx.com writes: Leo Alekseyev dnqu...@gmail.com writes: I was wondering if there was an easy way to execute some shell commands contained in a src block as root.

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 andreas.l...@med.uni-goettingen.de writes: Eric Schulte eric.schu...@gmx.com writes: Leo Alekseyev dnqu...@gmail.com 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

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 Nick Dokos
Leo Alekseyev dnqu...@gmail.com 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

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 dnqu...@gmail.com 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

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 eric.schu...@gmx.com writes: Leo Alekseyev dnqu...@gmail.com 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