diff --git a/README.md b/README.md index 26d2c53..0acfe26 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,10 @@ c = LXC::Container.new('foo') c.create('ubuntu') # create a container named foo with ubuntu template c.start # attach to a running container -c.attach do +pid = c.attach do LXC.run_command('ifconfig eth0') end +Process.wait(pid) c.stop c.destroy ```