Function: rsh

rsh is an autoloaded, interactive and byte-compiled function defined in telnet.el.gz.

This command is obsolete since 29.1.

Signature

(rsh HOST)

Documentation

Open a network login connection to host named HOST (a string).

Communication with HOST is recorded in a buffer *rsh-HOST*. Normally input is edited in Emacs and sent a line at a time.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/telnet.el.gz
;;;###autoload
(defun rsh (host)
  "Open a network login connection to host named HOST (a string).
Communication with HOST is recorded in a buffer `*rsh-HOST*'.
Normally input is edited in Emacs and sent a line at a time."
  (declare (obsolete nil "29.1"))
  (interactive "sOpen rsh connection to host: ")
  (require 'shell)
  (let ((name (concat "rsh-" host )))
    (switch-to-buffer (make-comint name remote-shell-program nil host))
    (set-process-filter (get-process name) #'telnet-initial-filter)
    (telnet-mode)
    (setq-local telnet-connect-command (list 'rsh host))
    (setq telnet-count -16)))