* Password processing in Lisp
@ 2002-12-30 2:17 Tennis Smith
2002-12-30 7:59 ` Friedrich Dominicus
0 siblings, 1 reply; 2+ messages in thread
From: Tennis Smith @ 2002-12-30 2:17 UTC (permalink / raw)
Hi. I'm trying to write a lisp function that will
automatically telnet and login to a router. Unfortunately,
when I get to password processing, it expects me to type in
the minibuffer. How can I get around that programatically
and send the password from my defun?
TIA,
-Tennis
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Password processing in Lisp
2002-12-30 2:17 Password processing in Lisp Tennis Smith
@ 2002-12-30 7:59 ` Friedrich Dominicus
0 siblings, 0 replies; 2+ messages in thread
From: Friedrich Dominicus @ 2002-12-30 7:59 UTC (permalink / raw)
tennis_smith@yahoo.com (Tennis Smith) writes:
> Hi. I'm trying to write a lisp function that will
> automatically telnet and login to a router. Unfortunately,
> when I get to password processing, it expects me to type in
> the minibuffer. How can I get around that programatically
> and send the password from my defun?
I assume you are using the telnet.el file. If that is the case you
should check this
;; You can use the global telnet-host-properties to associate a telnet
;; program and login name with each host you regularly telnet to.
setting it may work. But I guess the problem is this line:
(let ((password (comint-read-noecho "Password: " t)))
(setq telnet-count 0)
(process-send-string proc (concat password telnet-new-line))))
in function telnet-initial-filter.
If that is the case you must change this lines for your needs.
I would use the telnet-host-properties for it and extend it.
Regards
Friedrich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-30 7:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-30 2:17 Password processing in Lisp Tennis Smith
2002-12-30 7:59 ` Friedrich Dominicus
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).