Hi Christian,
On 09/10/2013 06:18 PM, Christian Hernandez wrote:
If I may interject....
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
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
that into rhevm-shell...repeating the process.
you don't have to write entire output of the shell to the file,
all shell commands supports output redirection to file/linux utilities
such as grep/etc. [1],
also in "script mode" printed limited MOTD (without welcome message)
if it still doesn't work for you, please file RFE (though i'm not sure it will
make to 3.3)
[1] list snapshots --vm-identifier aaa > snapshots.txt
for more details see
http://www.ovirt.org/CLI#Scripting
Also it doesn't help that rhevm-shell does a "clear" of
the screen when it runs (can I turn that off too?)
this is done for create "visual" isolation between bash and ovirt shells,
not sure i understand how it related to the told above, but if you find it
usable, i don't mind.
I would have to do that for every command.
I don't mind having an MOTD...just wished there was an option to turn it off
In short: It makes it easier to script and automate tasks.
Thank you,
Christian Hernandez
1225 Los Angeles Street
Glendale, CA 91204
Phone: 877-782-2737 ext. 4566
Fax: 818-265-3152
christianh(a)4over.com <mailto:christianh@4over.com> <mailto:christianh@4over.com
<mailto:christianh@4over.com>>
www.4over.com <
http://www.4over.com/> <
http://www.4over.com
<
http://www.4over.com/>>
On Tue, Sep 10, 2013 at 8:04 AM, Michael Pasternak <mpastern(a)redhat.com
<mailto:mpastern@redhat.com>> wrote:
Hi Anand,
On 09/10/2013 09:33 AM, Anand Nande wrote:
> Hi,
>
> Is it possible $subject?
> If so - please share how.
currently there is no "user-friendly" way to disable it,
can you elaborate please why do you need that?
>
> I tried to find the file which rhevm-shell would open using:
>
> # rhevm-shell -c -d ...(no luck)
> # lsof | egrep -i 'rhev|shell' ...(no luck)
>
> Regards
> --Anand
>
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
_______________________________________________
Users mailing list
Users(a)ovirt.org <mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users
--
Michael Pasternak
RedHat, ENG-Virtualization R&D