diff --git a/README.md b/README.md index 9c85a18..e66b003 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,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 ```