[libvirt] RFC: virsh: add support for redirecting output to files in virsh shell

Nehal J Wani nehaljw.kkd1 at gmail.com
Sat Nov 30 19:00:36 UTC 2013


Currently, for redirecting output (most of the times its the output of
--dumpxml) we use:
virsh $command > $file
But such redirection is not possible in virsh shell. It would be great
if libvirt supported this feature for those who love working in the
'virsh shell' (instead of typing 'virsh' before every command).

A simple approach would be to either add the redirection feature using
'>' or having some option like -o or --outfile (it would be nice if it
is available for each command, and not just restricted to --dumpxml
ones)

Regards,
Nehal J Wani




More information about the libvir-list mailing list