[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] plink ntemacs21 woes
From: |
Sivaram Neelakantan |
Subject: |
[h-e-w] plink ntemacs21 woes |
Date: |
Tue, 1 Jan 2002 15:09:33 +0530 |
Hello,
I'm unable to get plink working from within Ntemacs. I get the
following lines in plink/messages buffer
Unable to open connection:
Connection refused
Process plink-sivaramn@<hostname> exited abnormally with code 1
---
let: Symbol's function definition is void: telnet-mode
I followed the instructions put up by Tom Rosche on his website with
the lisp code
added to my _emacs file. I'm able to do a telnet thru putty but not
thru plink in emacs.
& this is even before i go on to installing tramp!
plink is kept in emacs/bin/ & the lisp code
;;;;;;;;
(setq plink-program "plink")
(defun plink-ssh (host)
"Open a ssh (secure shell) connection. See `plink'."
(interactive "sOpen ssh connection (address@hidden): ")
(plink host "-ssh"))
;; Telnet to host.
(defun plink (host &optional ssh-string)
"Open a telnet connection to host named HOST (a string).
Communication with HOST is recorded in a buffer `*plink-HOST*'.
Normally input is edited in Emacs and sent a line at a time."
(interactive "sOpen telnet connection (address@hidden): ")
(require 'shell)
(let ((name (concat "plink-" host))
(password (comint-read-noecho "password: " t))
(opt-string (if (eq ssh-string nil) "" ssh-string)))
(pop-to-buffer
(make-comint name plink-program nil opt-string host "-pw"
password))
(telnet-mode )
(set-process-filter (get-process name) 'telnet-initial-filter)
(accept-process-output (get-buffer-process (current-buffer)))
(send-string (get-buffer-process (current-buffer))
"stty echo\n")
(setq telnet-count -16)))
regards,
Sivaram
InterScan_Disclaimer.txt
Description: Text document
- [h-e-w] plink ntemacs21 woes,
Sivaram Neelakantan <=