[lxc-devel] lxc.Container.attach_wait() capturing stdout (and stderr)
BB
eeg5auquaephoo5j at gmail.com
Sat Dec 20 15:33:33 UTC 2014
Dear LXC Developers,
please excuse me, I was not sure if this question belongs on the users or
devel list.
What's the "standard" way to get the output (stdout, stderr) from
lxc.Container.attach_wait()? The method returns only the exit code and
writes to sys.stdout and sys.stderr.
I know that I can temporarily set sys.stdout to a StringIO buffer but I
suspect that there must be an easier way.
Best regards,
BB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20141220/3defc313/attachment.html>
More information about the lxc-devel
mailing list