unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Friedrich Dominicus <frido@q-software-solutions.com>
Subject: Re: Password processing in Lisp
Date: 30 Dec 2002 08:59:50 +0100	[thread overview]
Message-ID: <87d6nk2ayx.fsf@fbigm.here> (raw)
In-Reply-To: 7f477f72.0212291817.7ede4639@posting.google.com

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

      reply	other threads:[~2002-12-30  7:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-30  2:17 Password processing in Lisp Tennis Smith
2002-12-30  7:59 ` Friedrich Dominicus [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d6nk2ayx.fsf@fbigm.here \
    --to=frido@q-software-solutions.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.
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).