On Fri, Aug 9, 2013 at 2:21 PM, Adam Mercer <ramer...@gmail.com> wrote: > command="echo -n %s | sudo tee %s > /dev/null" % (channel, config_file) >
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. ChrisA -- http://mail.python.org/mailman/listinfo/python-list