<div dir="ltr"><a href="https://github.com/lxc/lxc/blob/master/src/python-lxc/examples/api_test.py#L121">https://github.com/lxc/lxc/blob/master/src/python-lxc/examples/api_test.py#L121</a><br><div>hth</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 4:18 PM, Rory Campbell-Lange <span dir="ltr"><<a href="mailto:rory@campbell-lange.net" target="_blank">rory@campbell-lange.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been playing with the lxc python api from the python3 command line.<br>
I can't find a way to do something like this from python:<br>
<br>
     lxc-attach -n debian-wheezy -- apt-get install rsync<br>
<br>
which works with the vanilla lxc-attach command.<br>
<br>
My thought is that my team could load debian packages from a yaml or<br>
other structured file via the python api.<br>
<br>
Rory<br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div><br></div>