Re: [Qemu-devel] [PATCH for-2.11 4/5] qmp-shell: Accept QMP command as argument

2017-08-08 Thread Stefan Hajnoczi
On Fri, Aug 04, 2017 at 06:36:24PM -0300, Eduardo Habkost wrote: > This is useful for testing QMP commands in scripts. > > Example usage, combined with 'jq' for filtering the results: > > $ ./scripts/qmp/qmp-shell /tmp/qmp qom-list path=/ | jq -r .return[].name > machine > type > chardevs

[Qemu-devel] [PATCH for-2.11 4/5] qmp-shell: Accept QMP command as argument

2017-08-04 Thread Eduardo Habkost
This is useful for testing QMP commands in scripts. Example usage, combined with 'jq' for filtering the results: $ ./scripts/qmp/qmp-shell /tmp/qmp qom-list path=/ | jq -r .return[].name machine type chardevs backend $ Signed-off-by: Eduardo Habkost --- scripts/qmp/qmp-shell | 13 +