[Users] Disable MOTD on shell login
Christian Hernandez
christianh at 4over.com
Tue Sep 10 16:00:20 UTC 2013
> 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],
I actually didn't know that (just starting to use rhevm-shell)...this will
prove very helpful!
Thanks!
Thank you,
Christian Hernandez
1225 Los Angeles Street
Glendale, CA 91204
Phone: 877-782-2737 ext. 4566
Fax: 818-265-3152
christianh at 4over.com <mailto:christianh at 4over.com>
www.4over.com <http://www.4over.com>
On Tue, Sep 10, 2013 at 8:43 AM, Michael Pasternak <mpastern at redhat.com>wrote:
>
> 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 at 4over.com <mailto:christianh at 4over.com> <mailto:
> christianh at 4over.com <mailto:christianh at 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 at redhat.com<mailto:
> mpastern at 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 at ovirt.org <mailto:Users at ovirt.org>
> > http://lists.ovirt.org/mailman/listinfo/users
> >
> >
>
>
> --
>
> Michael Pasternak
> RedHat, ENG-Virtualization R&D
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130910/6afd9b26/attachment-0001.html>
More information about the Users
mailing list