Kirk Strauser <[EMAIL PROTECTED]> writes:

> # Opening `multi' connection...
> # Waiting 60s for local shell to come up...
> sh-2.05a$ # Sending rlogin command `ssh vserver2 -l kirk'
> # Waiting 60s for shell or passwd prompt from vserver2
> Last login: Mon Jul 22 18:29:09 2002 from 10.0.1.2
> FreeBSD 4.6-STABLE (HONEYPOT_KANGA) #1: Sun Jul  7 20:58:28 CDT 2002
> # Sending su command `su - root'
> # Waiting 60s for shell or passwd prompt for root
>
> Welcome to FreeBSD!
>
> kirk@occult:[01;31m~[00m$ $ exec /bin/sh
> # Waiting 30s for remote `/bin/sh' to come up...
>
> Sorry
> kirk@occult:[01;31m~[00m$ # Setting up remote shell environment

It appears that Tramp got confused.  I guess that your value of
shell-prompt-pattern matches the following string from the above
transcript:

FreeBSD 4.6-STABLE (HONEYPOT_KANGA) #1: Sun Jul  7 20:58:28 CDT 2002

If this is the problem, then it has been fixed recently, by the
following changes.

2002-07-19  Steve Youngs  <[EMAIL PROTECTED]>

        * tramp.el: Revert my previous patch.  It's better to work around
        the colour prompt problem outside of Tramp, eg in ~/.bashrc or
        similar. 

2002-07-19  Steve Youngs  <[EMAIL PROTECTED]>

        * tramp.el (tramp-find-shell): Remove "\\'" from regexp so we can
        deal with shell prompts that have colour control characters in
        them. 
        (tramp-open-connection-telnet): Ditto.
        (tramp-open-connection-rsh): Ditto.
        (tramp-open-connection-su): Ditto.
        (tramp-open-connection-multi): Ditto.
        (tramp-multi-connect-telnet): Ditto.
        (tramp-multi-connect-rlogin): Ditto.
        (tramp-multi-connect-su): Ditto.
        (tramp-open-connection-setup-interactive-shell): Ditto.

2002-05-22  Kai Großjohann  <[EMAIL PROTECTED]>

        * tramp.el (tramp-find-shell, tramp-open-connection-telnet) 
        (tramp-open-connection-rsh, tramp-open-connection-su) 
        (tramp-open-connection-multi, tramp-multi-connect-telnet) 
        (tramp-multi-connect-rlogin) 
        (tramp-open-connection-setup-interactive-shell): Shell prompt
        must match at end of buffer.    

You can have a look in your lisp/ChangeLog file to see if you have
these changes.  If you have only the third change, then you're fine.
If you have the second change, then you must also have the first
change -- as you can see, Steve first broke it and then repaired it
again.

Sadly, I forgot which changes are in which released version, but I
want to release a new version soon with bug fixes.  In the meantime,
you can get the current CVS from Savannah or mail me for a tarball.

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.freesoftware.fsf.org/mailman/listinfo/tramp-devel

Reply via email to