[libvirt] [PATCH 0/2] Update virsh to use stdin where appropriate

Michael Williams spacex at mspacex.net
Tue Jun 14 03:39:14 UTC 2011


Allow virsh to use stdin for xml and other config file input when
otherwise it would have required a file input.  This allows for easier
passing of configs through pipes, for example:

virsh dumpxml 6 | ssh remote-host "virsh define"

Michael Williams (2):
  Use '-' to read from stdin
  Try stdin for input when no file is specified

 src/util/util.c |   16 ++++++++-
 tools/virsh.c   |   99
+++++++++++++++++++++++++++++++++++--------------------
 2 files changed, 78 insertions(+), 37 deletions(-)

-- 
1.7.3.4




More information about the libvir-list mailing list