From: "Tennis Smith" <tennis_smith@yahoo-remove-to-reply.com>
Subject: telnet in buffer using elisp -- is this the best way?
Date: Sat, 10 Jul 2004 11:44:31 -0700 [thread overview]
Message-ID: <1089484878.512760@sj-nntpcache-5> (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.
next reply other threads:[~2004-07-10 18:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-10 18:44 Tennis Smith [this message]
2004-07-10 21:51 ` telnet in buffer using elisp -- is this the best way? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1089484878.512760@sj-nntpcache-5 \
--to=tennis_smith@yahoo-remove-to-reply.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.