tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.0.35); login not recognized


From: Sven Utcke
Subject: Re: tramp (2.0.35); login not recognized
Date: Mon, 14 Jul 2003 15:15:29 +0200
User-agent: Mutt/1.4i

> > --- snip ---
> > Last login: Mon Jul 14 12:10:22 2003 from kogs2.informatik
> > Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
> > You have new mail.
> > kogs1>/home/utcke% 
> > --- snip ---
> 
> The prompt regexp used by Tramp is (stripped down to the relevant
> parts):
> 
>     ^[^%>]*[%>] *
> 
> I further append a $ to the regexp, for reasons explained below.  As
> you can see, your prompt does not match this regexp (with $ appended)
> because of the ">" in the middle.
> 
> Why do I require the prompt to match at end of line?

No problem here.  In fact, why not simply set the prompt to

^.*[#%>] *$

This would match anything which your prompt would catch, plus some
more --- is the some more a problem I'm not seeing?  What did the old
version use...

"^[^#$%>\n]*[#$%>] *"

Ok, so that's why it worked originally, no $ at the end...

> What can you do about it?
> 
> When Tramp logs in to the remote host, it sets $TERM to dumb.  So you
> could change your shell init files to use a simple prompt for this
> case.

Well, I'm installing this for every user here, with lot's of different
prompts.  Hmm.  I suppose I could frob the system-wide files, but
users are going to override this...

> The other alternative is to frob shell-prompt-pattern or
> tramp-shell-prompt-pattern such that your prompt is recognized.

Yep, I'll simply use the above (looking just for a line ending on what
could be a prompt) and see where that will brake.

Thanks

Sven
-- 
 _  __                     The Cognitive Systems Group
| |/ /___  __ _ ___                                       University of Hamburg
| ' </ _ \/ _` (_-<  phone:    +49 (0)40 42883-2576      Vogt-Koelln-Strasse 30
|_|\_\___/\__, /__/  fax  :    +49 (0)40 42883-2572             D-22527 Hamburg
          |___/ http://kogs-www.informatik.uni-hamburg.de/~utcke/home.html




reply via email to

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