[lxc-users] strange behaviour of grep on lxc-info

Tamas Papp tompos at martos.bme.hu
Mon Sep 8 23:15:28 UTC 2014


On 09/09/2014 12:58 AM, Tycho Andersen wrote:
> On Mon, Sep 08, 2014 at 11:40:43PM +0200, Tamas Papp wrote:
>> On 09/08/2014 11:34 PM, Tycho Andersen wrote:
>>> I haven't looked into it, but I've seen similar behavior in my LXC
>>> usage.
>> I forgot the version:
>>
>> ii  lxc 1.0.5-0ubuntu0.1                  amd64 Linux Containers
>> userspace tools
>>
>>
>>> [ "$(lxc-info -n t1 -H -s)" = "RUNNING" ] might be useful. Tycho
>> That's the point, this doesn't work now:)
> Have you seen it break with -H? All your examples were without, and my
> scripts that use -H seem to work consistently.
>

Yes:

# [ "$(lxc-info -n dl -H -s)" = "RUNNING" ] && echo ok
# lxc-info -n dl -H -s
RUNNING
#



tamas


More information about the lxc-users mailing list