WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-tools

RE: [Xen-tools] [PATCH] Add a --format parameter to xm list

To: "Anthony Liguori" <aliguori@xxxxxxxxxx>, "Xen Tools" <xen-tools@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-tools] [PATCH] Add a --format parameter to xm list
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 11 Aug 2005 10:53:58 +0100
Delivery-date: Thu, 11 Aug 2005 09:51:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-tools-request@lists.xensource.com?subject=help>
List-id: Xen control tools developers <xen-tools.lists.xensource.com>
List-post: <mailto:xen-tools@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-tools-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWd+eIqzamYj/uRQX6TkXN+41EoNgAYJ8GQ
Thread-topic: [Xen-tools] [PATCH] Add a --format parameter to xm list
> The following patch adds a --format option to xm list which 
> let's you specify a python formatting string to use.  Since 
> we're using named keys, it ends up working very nicely.  The 
> above can be done with:
> 
> res=`xm list -f "%(mem)d" $VM`
> 
> Which is considerably nicer and more robust against slight 
> changes in the display format.

Looks useful to me...

Ian

_______________________________________________
Xen-tools mailing list
Xen-tools@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-tools

<Prev in Thread] Current Thread [Next in Thread>