From: Serge Hallyn Date: Thu, 9 Feb 2012 16:51:31 +0000 (-0600) Subject: silence netstat warnings in lxc-ls X-Git-Tag: lxc-0.8.0-rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0c4a9fb936f438d1a9fdce0702ca59ad1bb2419;p=thirdparty%2Flxc.git silence netstat warnings in lxc-ls netstat -x sometimes spits errors to stderr like: warning, got bogus unix line. Shut those up as they don't help lxc-ls. Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index 792ea0efe..d200509d0 100644 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -25,7 +25,7 @@ function get_cgroup() ls "$@" $lxcpath -active=$(netstat -xl | grep $lxcpath | \ +active=$(netstat -xl 2>/dev/null | grep $lxcpath | \ sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#'); if test -n "$active"; then