unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Cor Gest <cor@clsnet.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: Strange (to me ) problem with TRAMP
Date: Wed, 01 Oct 2008 14:34:53 +0000	[thread overview]
Message-ID: <87tzbwz8mq.fsf@atthis.clsnet.nl> (raw)
In-Reply-To: mailman.20307.1222854444.18990.help-gnu-emacs@gnu.org


Some entity, AKA "Lorenzo Isella" <lorenzo.isella@gmail.com>,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)

> Dear All,
> I am experimenting several shells to use within emacs. I am quite
> pleased with eshell, right now, but I am rather puzzled at the strange
> message I get in a separate buffer if, for instance, I type
>
> cd /
> and press TAB.
> See below:
>
> ssh: Could not resolve hostname fcp: Name or service not known
>
> Process *tramp/scp fcp* exited abnormally with code 255
>

the TAB puts a colon in , as your code instructed it to do, 
which now is interpreted as  " /: " and seen as a sign to invoke tramp, but
there is no hostname, so it exits with that error.

auto-completion does have its drawbacks sometimes with unintended
consequences. 

/hostname:/ will open a ssh-link to HOSTNAME and prompt you for a
passwd.

put in ~/.emacs:
;;; (setq shell-prompt-pattern ":") 

Wich means the prompt-pattern of the shell of the machine you connect TO.

Put this line (for unix) or some other Windows smb equivalent prompt 
in your .emacs is important here, otherwise tramp will wait 
(and block emacs) for minutes. 

You can preset some hosts like:
;;;(add-to-list 'tramp-default-method-alist '("hostname-1" "user1" "smb"))
;;;(add-to-list 'tramp-default-method-alist '("hostname-2" "user2" "ssh")
 ...

see more about tramp here:

http://www.gnu.org/software/emacs/manual/html_node/tramp/index.html

Cor

-- 
	Mijn Tools zijn zo modern dat ze allemaal eindigen op 'saurus'
        (defvar My-Computer '((OS . "GNU/Emacs") (IPL . "GNU/Linux")))
	     SPAM DELENDA EST       http://www.clsnet.nl/mail.php
                 1st Law of surviving a gunfight : Have a gun 


       reply	other threads:[~2008-10-01 14:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.20307.1222854444.18990.help-gnu-emacs@gnu.org>
2008-10-01 14:34 ` Cor Gest [this message]
     [not found] <mailman.30.1222945856.25473.help-gnu-emacs@gnu.org>
2008-10-02 12:14 ` Strange (to me ) problem with TRAMP Cor Gest
2008-10-02 11:10 Lorenzo Isella
  -- strict thread matches above, loose matches on Subject: below --
2008-10-01  9:47 Lorenzo Isella

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=87tzbwz8mq.fsf@atthis.clsnet.nl \
    --to=cor@clsnet.nl \
    --cc=help-gnu-emacs@gnu.org \
    /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).