[Lxc-users] Piping output of lxc-monitor to a file without buffering
Ken Elkabany
Ken at Elkabany.com
Fri Sep 7 00:46:35 UTC 2012
Hi,
The following outputs container state changes to the terminal as expected:
$ lxc-monitor -n container-1
However, the following outputs the same state changes to a file only after
a certain buffer size has been reached:
$ lxc-monitor -n container-1 &> output
This is problematic because it means that live monitoring cannot be done by
a separate program. The buffering delays messages, potentially indefinitely.
Is there a way around this? Alternatively, is there another way of getting
callbacks or triggers when a container changes state? I was surprised that
lxc-wait was simply a bash script that polled lxc-info every second, which
in my use case is insufficient.
Best,
Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120906/fd0aa0d5/attachment.html>
More information about the lxc-users
mailing list