tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp-default-proxies-alist help


From: Adrian Aichner
Subject: Re: tramp-default-proxies-alist help
Date: Tue, 14 Mar 2006 22:17:03 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b25 (windows-nt)

"Ned Ludd" <address@hidden> writes:

> That's a beautiful thing Michael.  Works like a charm.  Thank you.
>
> The "'" thing I was not sure about.  One example in section 5.7 of the Tramp
> User Manual has this at the end of the regexp.  Must be a typo....

I'm missing context, but perhaps

`\''
     matches the empty string, but only at the end of the buffer or
     string being matched against.

from (info "(lispref)Syntax of Regexps") is the relevant bit of
information to shed light on this issue?

Adrian

>
> Ned
>
> On 3/14/06, Michael Albinus <address@hidden> wrote:
>
>     "Ned Ludd" <address@hidden> writes:
>    
>     > I have the following, but it does not seem to work: it connects to
>     host1,
>     > and then tries to jump directly to host4:
>     >
>     > (add-to-list 'tramp-default-proxies-alist '("\\." nil "/ssh:host1:"))
>     > (add-to-list 'tramp-default-proxies-alist '("host2'" nil "/ssh:host1:"))
>     > (add-to-list 'tramp-default-proxies-alist '("host3'" nil "/ssh:host2:"))
>     > (add-to-list 'tramp-default-proxies-alist '("host4'" nil "/
>     ssh:address@hidden
>     > :"))
>    
>     What are the "'" characters good for in the host regexp's?
>    
>     Furtheron, your first regexp means "for all hostnames containing a '.'
>     hop via host1". But you must say it the other side, from the end: "for
>     all hostnames containing a '.' hop via host4". I would use this:
>    
>     ;; My final way to freedom is host4
>     (add-to-list 'tramp-default-proxies-alist '("\\." nil "/ssh:host4:"))
>     ;; I must pass address@hidden in order to reach host4
>     (add-to-list 'tramp-default-proxies-alist '("host4" nil "/
>     ssh:address@hidden:"))
>     ;; I must pass host2 in order to reach host3
>     (add-to-list 'tramp-default-proxies-alist '("host3" nil "/ssh:host2:"))
>     ;; I must pass host1 in order to reach host2
>     (add-to-list 'tramp-default-proxies-alist '("host2" nil "/ssh:host1:"))
>
>     > Can you help?
>     > -----
>     > Ned Ludd
>    
>     Best regards, Michael.

-- 
Adrian Aichner
 mailto:address@hidden
 http://www.xemacs.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]