[Top][All Lists]

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

Re: Tramp and BusyBox problem?

From: Mats Löfdahl
Subject: Re: Tramp and BusyBox problem?
Date: Thu, 19 Mar 2009 21:19:21 +0100
User-agent: Thunderbird (X11/20090105)

Michael Albinus wrote:
Mats Löfdahl <address@hidden> writes:

I then started a fresh emacs and did the double attempt to connect as
root. To me it looked just like last time but I've uploaded the debug
buffer anyway:

Things progress. Still an error, but at another place.

Tramp has two problems with your Busybox: it echoes the commands, and it
is slow. This case, when Tramp has send "PS1='$ '", only the "PS1='$"
substring was visible in the output buffer, and Tramp thought it is a
shell prompt. Then it has sent the next command, and it began to be
confused by the not read characters.

I guess this is consistent with my varying success with the bash test. If it's dependent on timing, the NAS could have been doing different things during the two tests, one that worked and one that failed.

So we must convince Tramp there isn't a shell prompt, even if the
command itself is echoed, and even if only a substring of the whole
command is visible.

The appended patch tries to catch this situation. Could you, please,

Tested as before. Yes, this improves things. I now get to the dired buffer! This dired buffer looks badly formatted in the way described before, when I managed to connect with another user running bash.

A debug buffer was still created, it is available as

An error was echoed. I guess the info is in the debug buffer but here it is from the *Messages* buffer as well:

Loading tramp...done
Loading easymenu...done
Loading tramp...done
Loading time-date...done
Tramp: Opening connection for address@hidden using scp...
Loading outline...
Loading easy-mmode...done
Loading outline...done
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh -l root  -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Sending password
Tramp: Found remote shell prompt on `'
File error: `getconf PATH' returns with error
Tramp: `getconf PATH' not successful, using default value "/bin:/usr/bin".
Making completion list...
Making completion list...
Wrote /home/mats/debug4.txt
byte-code: Beginning of buffer

Back to the badly formatted dired buffer: In addition to it looking funny, completion to existing file names does not work. Neither does clicking on the file names. It fails to open the file and an error is echoed: "dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer"

Thanks for spending time on this!


reply via email to

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