unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* telnet in buffer using elisp -- is this the best way?
@ 2004-07-10 18:44 Tennis Smith
  2004-07-10 21:51 ` Kai Grossjohann
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tennis Smith @ 2004-07-10 18:44 UTC (permalink / raw)


Hi

Apologies for the basic nature of the questions, but my area is s/w testing,
not elisp writing. ;-)

I frequently have the need to telnet into routers, via console ports thru a
term server or a native ip address.  I've built some *very* basic elisp
functions for doing this, but I'm wondering if there is a better way. The
number of routers in my environment continues to grow (Im in a testing
group, we have hundreds of the things). So, this approach has become a real
problem since each router requires a separate function to access it.

Here are a couple examples:

(defun 5gw-con ()
(interactive)
(telnet "10.10.10.58 2008")
(rename-buffer "ef-gw-5-con"))

(defun 5gw-con2 ()
(interactive)
(telnet "10.10.10.58 2009")
(rename-buffer "ef-gw-5-con"))

(defun 7gw ()
(interactive)
(telnet "10.10.10.40")
(rename-buffer "ef-gw-7"))

There's an additional issue too. Sometimes the same address will be used in
multiple places. Note that the first two examples uses an ip/port
combination. In this case the port will be changing, but the base ip address
will stay the same. Is there a way to specify the ip address in _one_ place
and have it be used in multiple places?

Is there a better way to do all this?

TIA,
-Tennis




--
Remove "-remove-to-reply" to respond to my  email address directly.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-13  7:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-10 18:44 telnet in buffer using elisp -- is this the best way? Tennis Smith
2004-07-10 21:51 ` Kai Grossjohann
2004-07-10 22:24 ` Kin Cho
2004-07-11  1:34   ` Tennis Smith
2004-07-11  8:25     ` Kai Grossjohann
2004-07-13  7:59 ` Tim X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).