From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Friedrich Dominicus Newsgroups: gmane.emacs.help Subject: Re: Password processing in Lisp Date: 30 Dec 2002 08:59:50 +0100 Organization: Q Software Solutions GmbH Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87d6nk2ayx.fsf@fbigm.here> References: <7f477f72.0212291817.7ede4639@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041235270 7187 80.91.224.249 (30 Dec 2002 08:01:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2002 08:01:10 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SurE-0001rm-00 for ; Mon, 30 Dec 2002 09:01:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Suqe-00022D-04 for gnu-help-gnu-emacs@m.gmane.org; Mon, 30 Dec 2002 03:00:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: news.t-online.com 1041234985 00 28611 dEIpEbWGScYwUK 021230 07:56:25 Original-X-Complaints-To: abuse@t-online.com X-Sender: 320004655587-0001@t-dialin.net User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence) Original-Xref: shelby.stanford.edu gnu.emacs.help:108594 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5123 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5123 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