Using sudo to write to a file as root from a script

Adam Mercer ramercer at gmail.com
Fri Aug 9 09:50:59 EDT 2013


On Fri, Aug 9, 2013 at 8:42 AM, Antoon Pardon
<antoon.pardon at rece.vub.ac.be> wrote:

> That is probably beside the point. I suspect Adam is just giving a
> minimal example to show the kind of thing he is trying to do.
>
> Nit picking the specific example instead of advising on the problem
> is likely to be less than helpful.

It is a simplified example, but in this case the nitpicking was very
helpful. Caused me to think about the problem differently, and
therefore come up with a neater solution.

Cheers

Adam



More information about the Python-list mailing list