[Users] Ovirt CLI: Pipe is not working when reading from file

semjek semjek at seznam.cz
Mon May 13 13:27:50 UTC 2013


Hello,



I'm trying to script stopping all vms at once but when I'm using example 
given in documentation, it won't work. The problem is when I read the 
command containing pipe from file. When the same command is pasted into 
stdin, everything works fine.





[root at ovirt-administration ~]# ovirt-shell -c




 ==========================================

 >>> connected to oVirt manager 3.2.0.0 <<<

 ==========================================







 ++++++++++++++++++++++++++++++++++++++++++





           Welcome to oVirt shell




 ++++++++++++++++++++++++++++++++++++++++++






[oVirt shell (connected)]# list vms | grep test3

name       : test3






oVirt shell (connected)]# exit


[root at ovirt-administration ~]#









But when I read from file:







[root at ovirt-administration ~]# ovirt-shell -c -f /root/listall.txt






 ==========================================

 >>> connected to oVirt manager 3.2.0.0 <<<

 ==========================================




[oVirt shell (connected)]# list vms | grep lindev







id         : cd27d9fd-611e-4a3d-8eba-ae6e50c038dc


name       : test2




id         : 77cb6321-e21f-4bfb-aae6-ee178dbd9b8a

name       : test3




id         : eba23051-8285-4a46-936d-25bd37c6cf8f

name       : test4




[oVirt shell (connected)]# exit





[root at ovirt-administration ~]#





This looks like a bug in ovirt-shell. Any thought?




Best regards

Evgeny



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130513/98b01b6a/attachment-0001.html>


More information about the Users mailing list