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

Adam Mercer ramercer at gmail.com
Fri Aug 9 09:42:26 EDT 2013


On Fri, Aug 9, 2013 at 8:29 AM, Chris Angelico <rosuav at gmail.com> wrote:

> You shouldn't need to use 'echo' here. Just provide tee with the text
> on its standard input, and don't bother with the pipe at all.

Thanks, that's much better!

Cheers

Adam



More information about the Python-list mailing list