<div dir="ltr"><br>> you don't have to write entire output of the shell to the file,<br>
> all shell commands supports output redirection to file/linux utilities<br>
> such as grep/etc. [1],<div class="gmail_extra"><br></div><div class="gmail_extra">I actually didn't know that (just starting to use rhevm-shell)...this will prove very helpful!<br><br>Thanks!<br clear="all"></div>
<div class="gmail_extra"><div><div dir="ltr"><div><br>Thank you,<br><br>Christian Hernandez<br></div>1225 Los Angeles Street<br><div>Glendale, CA 91204<br>
Phone: <a value="+18777822737">877-782-2737 ext. 4566</a><br>Fax: <a value="+18182653152">818-265-3152</a><br><a href="mailto:christianh@4over.com" target="_blank">christianh@4over.com</a> <mailto:<a href="mailto:christianh@4over.com" target="_blank">christianh@4over.com</a>> <br>
<a href="http://www.4over.com/" target="_blank">www.4over.com</a> <<a href="http://www.4over.com/" target="_blank">http://www.4over.com</a>></div></div></div>
<br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 8:43 AM, Michael Pasternak <span dir="ltr"><<a href="mailto:mpastern@redhat.com" target="_blank">mpastern@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi Christian,<br>
<div class="im"><br>
On 09/10/2013 06:18 PM, Christian Hernandez wrote:<br>
> If I may interject....<br>
><br>
> Disabling the MOTD makes it easier to script...let's say if I want to get a list of VMs' snapshots and out them in a for loop...I would have to write the output of the<br>
> rhevm-shell to a file; parse that file (oh BTW there are ^[[H and ^[[2 in that file...just to make things more interesteing); then run it through my loop - and then pass<br>
> that into rhevm-shell...repeating the process.<br>
<br>
</div>you don't have to write entire output of the shell to the file,<br>
all shell commands supports output redirection to file/linux utilities<br>
such as grep/etc. [1],<br>
<br>
also in "script mode" printed limited MOTD (without welcome message)<br>
if it still doesn't work for you, please file RFE (though i'm not sure it will make to 3.3)<br>
<br>
[1] list snapshots --vm-identifier aaa > snapshots.txt<br>
for more details see <a href="http://www.ovirt.org/CLI#Scripting" target="_blank">http://www.ovirt.org/CLI#Scripting</a><br>
<div class="im"><br>
> Also it doesn't help that rhevm-shell does a "clear" of the screen when it runs (can I turn that off too?)<br>
<br>
</div>this is done for create "visual" isolation between bash and ovirt shells,<br>
not sure i understand how it related to the told above, but if you find it<br>
usable, i don't mind.<br>
<div class="im"><br>
><br>
> I would have to do that for every command.<br>
><br>
> I don't mind having an MOTD...just wished there was an option to turn it off<br>
><br>
><br>
> In short: It makes it easier to script and automate tasks.<br>
><br>
><br>
> Thank you,<br>
><br>
> Christian Hernandez<br>
> 1225 Los Angeles Street<br>
> Glendale, CA 91204<br>
> Phone: <a href="tel:877-782-2737%20ext.%204566" value="+18777822737">877-782-2737 ext. 4566</a><br>
> Fax: <a href="tel:818-265-3152" value="+18182653152">818-265-3152</a><br>
</div>> <a href="mailto:christianh@4over.com">christianh@4over.com</a> <mailto:<a href="mailto:christianh@4over.com">christianh@4over.com</a>> <mailto:<a href="mailto:christianh@4over.com">christianh@4over.com</a> <mailto:<a href="mailto:christianh@4over.com">christianh@4over.com</a>>><br>
> <a href="http://www.4over.com" target="_blank">www.4over.com</a> <<a href="http://www.4over.com/" target="_blank">http://www.4over.com/</a>> <<a href="http://www.4over.com" target="_blank">http://www.4over.com</a> <<a href="http://www.4over.com/" target="_blank">http://www.4over.com/</a>>><br>
<div class="im">><br>
><br>
> On Tue, Sep 10, 2013 at 8:04 AM, Michael Pasternak <<a href="mailto:mpastern@redhat.com">mpastern@redhat.com</a> <mailto:<a href="mailto:mpastern@redhat.com">mpastern@redhat.com</a>>> wrote:<br>
><br>
><br>
> Hi Anand,<br>
><br>
> On 09/10/2013 09:33 AM, Anand Nande wrote:<br>
> > Hi,<br>
> ><br>
> > Is it possible $subject?<br>
> > If so - please share how.<br>
><br>
> currently there is no "user-friendly" way to disable it,<br>
> can you elaborate please why do you need that?<br>
><br>
> ><br>
> > I tried to find the file which rhevm-shell would open using:<br>
> ><br>
> > # rhevm-shell -c -d ...(no luck)<br>
> > # lsof | egrep -i 'rhev|shell' ...(no luck)<br>
> ><br>
> > Regards<br>
> > --Anand<br>
> ><br>
><br>
><br>
> --<br>
><br>
> Michael Pasternak<br>
> RedHat, ENG-Virtualization R&D<br>
> _______________________________________________<br>
> Users mailing list<br>
</div>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
<br>
<br>
--<br>
<br>
Michael Pasternak<br>
RedHat, ENG-Virtualization R&D<br>
</div></div></blockquote></div><br></div></div>