net/tramp

Rommel Martinez ebzzry at gmail.com
Thu Dec 8 02:12:50 PST 2005


I did what you said (BTW, you can't do M-x customize RET
tramp-debug-buffer RET because when you press the first RET, customize
would load the top-level options. It would be M-x customize-variable
RET tramp-debug-buffer RET).

BTW, the *tramp/su root at localhost*  buffer contained:

18:06:57 tramp-maybe-open-connection (3) # Opening connection for
root at localhost using su...
18:06:57 tramp-maybe-open-connection (3) # Waiting 60s for local shell
to come up...
18:07:57 tramp-wait-for-regexp (1) # [[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 60 secs]]
18:07:57 tramp-file-name-handler (1) # Couldn't find local shell prompt /bin/sh

-Mel

On 12/7/05, Dominic Mitchell <dom at happygiraffe.net> wrote:
> On Wed, Dec 07, 2005 at 07:52:41PM +0800, Rommel Martinez wrote:
> > On 12/7/05, Dominic Mitchell <dom at happygiraffe.net> wrote:
> > > On Wed, Dec 07, 2005 at 04:34:17PM +0800, Rommel Martinez wrote:
> > > > I just would like to inform you, as advised at FreeNode #FreeBSD that
> > > > the port net/tramp doesn't work well as expected.
> > > >
> > > > If I open a file under Emacs, say /root at localhost:/some/file, This
> > > > gets displayed in the echo area for a 60 secs, temporarily causing
> > > > Emacs to hang:
> > > >
> > > >     Waiting for 60s for local shell to come up...
> > > >
> > > > After around 60 seconds, a new window (Emacs window) pops up, with the
> > > > shell prompt in it, and Emacs displays this text in the echo area:
> > > >
> > > >     Couldn't find local shell prompt /bin/sh
> > >
> > > Interesting.  It appears to work fine here on emacs-21.  What are the
> > > contents of the buffers *tramp/su root at localhost* and *Messages*?
> >
> > *tramp/su root at localhost* contains:
> >
> > $
> >
> >
> > *Messages* contains:
> >
> > tramp: Opening connection for root at localhost using su...
> > tramp: Waiting 60s for local shell to come up...
> > tramp: [[Regexp `\(^[^#$%>
> > ]*[#$%>] *\|^[^#$%>
> > ]*[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 60 secs]]
> > tramp: Couldn't find local shell prompt /bin/sh
> > byte-code: Couldn't find local shell prompt /bin/sh
>
> Perhaps you need to check that your root shell prompt is followed by a
> space?  It sounds like it's su'ing ok, but not spotting the prompt
> afterwards.
>
> Perhaps it's worthwhile doing M-x customize RET tramp-debug-buffer RET
> so that you can see all the commands that are going on in the
> background.
>
> -Dom
>


More information about the freebsd-ports mailing list