Xavier Maillard | 15 Feb 14:00

eev and terminals (console)

Hi,

I am reconsidering using eev for my daily work as a DBA. I am
playing most of the time into linux console sending orders to
several DB servers either using my local client or by connecting
onto them through telnet/ssh.

Is there some way to "command" a linux terminal (console) with
the help of eev ?

	Xavier
--

-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org
David O'Toole | 15 Feb 15:53

Re: eev and terminals (console)

There is some feature called eechannels (and another called eepitch)
that may do what you want.

On Fri, Feb 15, 2008 at 8:04 AM, Xavier Maillard <xma@...> wrote:
> Hi,
>
>  I am reconsidering using eev for my daily work as a DBA. I am
>  playing most of the time into linux console sending orders to
>  several DB servers either using my local client or by connecting
>  onto them through telnet/ssh.
>
>  Is there some way to "command" a linux terminal (console) with
>  the help of eev ?
>
>         Xavier
>  --
>  http://www.gnu.org
>  http://www.april.org
>  http://www.lolica.org
>
>
>  _______________________________________________
>  eev mailing list
>  eev@...
>  http://lists.nongnu.org/mailman/listinfo/eev
>
Jeff Barczewski | 15 Feb 16:10

Re: eev and terminals (console)

You could also combine eev with the emacs sql mode and do your sql right from emacs directly.

On Fri, Feb 15, 2008 at 7:04 AM, Xavier Maillard <xma-mXXj517/zsQ@public.gmane.org> wrote:
Hi,

I am reconsidering using eev for my daily work as a DBA. I am
playing most of the time into linux console sending orders to
several DB servers either using my local client or by connecting
onto them through telnet/ssh.

Is there some way to "command" a linux terminal (console) with
the help of eev ?

       Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


_______________________________________________
eev mailing list
eev-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
http://lists.nongnu.org/mailman/listinfo/eev



--
Jeff Barczewski, MasterView core team
Inspired Horizons Ruby on Rails Training and Consultancy
http://inspiredhorizons.com/
_______________________________________________
eev mailing list
eev@...
http://lists.nongnu.org/mailman/listinfo/eev
Eduardo Ochs | 16 Feb 23:57

Re: eev and terminals (console)

Hi Xavier,

> I am reconsidering using eev for my daily work as a DBA. I am
> playing most of the time into linux console sending orders to
> several DB servers either using my local client or by connecting
> onto them through telnet/ssh.
>
> Is there some way to "command" a linux terminal (console) with
> the help of eev ?

There are several ways... there's "eechannel" and "eexterm", but they
require Expect, xterm, and some set-ups; you can find some
documentation about them here:

  http://angg.twu.net/eev-article.html#channels

The links in the "[See also: ...]" line just below the title of the
section are probably the best part.

If the clients that you are going to use to connect to the DB servers
don't send weird control characters to the terminal, then I guess that
"eepitch" and its derivatives will work better...

There is some documentation on eepitch at:

  http://angg.twu.net/eev-article.html#eepitch

and recent versions of eev-current come with several flavors of
`eepitch-somewhere' already defined:

  http://angg.twu.net/eev-current/eev-mini-steps.el.html#eepitch-shell
  (find-efunction 'eepitch-shell)

Also, some of the `find-xxx-links' functions generate buffers that
have not only hyperlinks but also some eepitch blocks... try:

  (find-eev-update-links)
  (find-psne-links "http://angg.twu.net/eev-current.tar.gz")

and a quick way to create a block like

  * (eepitch-xxx)
  * (eepitch-kill)
  * (eepitch-xxx)

is to type just "xxx" on a line, they type `M-T' (i.e., `M-S-t' -
"meta-upeercase-t"). That only works with very recent versions of
eev-current. though.

Which DBs do you use? It would be nice to have some eepitch functions
like, say, `eepitch-pgtestdb1', in some example scripts... I just
checked my files with notes about mysql, postgres and sqlite, and the
examples there were all written before I started to use eepitch for
everything... 8-/

Cheers,
  Eduardo Ochs
  http://angg.twu.net/
  eduardoochs@...
Eduardo Ochs | 17 Feb 00:08

Re: eev and terminals (console)

Hi Jeff,

> You could also combine eev with the emacs sql mode and do your sql right
> from emacs directly.

Can you be more specific?
You mean running eepitch/eechannel/eev from a .sql file, to have the right
font-locking and indentation? Do you mean creating a buffer running some
kind of "inferior SQL mode" with eepitch, to have something with more
features than just a comint buffer running a SQL client?
I am asking because I have very little experience with these "inferior blah"
modes and buffers, but it would be nice to support them...

  Thanks in advance, & cheers,
    Eduardo Ochs
    http://angg.twu.net/
    eduardoochs@...
Xavier Maillard | 18 Feb 03:00

Re: eev and terminals (console)

Hi everybody,

[It seems eev mailing list is going to have some archives this year :)]

   > You could also combine eev with the emacs sql mode and do your sql right
   > from emacs directly.

   Can you be more specific?
   You mean running eepitch/eechannel/eev from a .sql file, to have the right
   font-locking and indentation? 

I thought eev-mode was a minor mode that we could activate
everywhere. Did I miss something here ? If not, then it is
already supported.

   Do you mean creating a buffer running some
   kind of "inferior SQL mode" with eepitch, to have something with more
   features than just a comint buffer running a SQL client?

From my point of view, and for what I need, it is as simple as
having frequent SQL queries ready to be shooted from an e-script.
So as a DBA, I would have just needed to open my sql.e escript
file and launch several queries through a comint buffer and/or
for the more complex queries, launch them using exterm/eechanel.

Regards,

	Xavier
--

-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org
Jeff Barczewski | 25 Feb 18:12

Re: eev and terminals (console)



On Sat, Feb 16, 2008 at 5:08 PM, Eduardo Ochs <eduardoochs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi Jeff,

> You could also combine eev with the emacs sql mode and do your sql right
> from emacs directly.

Can you be more specific?
You mean running eepitch/eechannel/eev from a .sql file, to have the right
font-locking and indentation? Do you mean creating a buffer running some
kind of "inferior SQL mode" with eepitch, to have something with more
features than just a comint buffer running a SQL client?
I am asking because I have very little experience with these "inferior blah"
modes and buffers, but it would be nice to support them...


Well, I thought I had done something like this in the past where I used eewalk/eestep to simply playback things across many buffers, one of which was the emacs sql-mode buffer which was attached to my db. From what I remember I could use eev to edit and do things in any of the buffers regardless of what mode they were running in, but it's been a while since I worked with this so my memory could be failing me :-)


--
Jeff Barczewski, MasterView core team
Inspired Horizons Ruby on Rails Training and Consultancy
http://inspiredhorizons.com/
_______________________________________________
eev mailing list
eev@...
http://lists.nongnu.org/mailman/listinfo/eev
Xavier Maillard | 17 Feb 03:00

Re: eev and terminals (console)

Hi,

   You could also combine eev with the emacs sql mode and do your sql right
   from emacs directly.

I am already using sql mode from GNU Emacs but I want even more
interaction with "predefined" queries as eev block. If eev can
handle that either directly through sql mode and/or using
eechanels, I'd be more than satisfied :)

I am still a big n00b when using eev ;)

	Xavier
--

-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org

Gmane