From: "Mats Löfdahl" <mats_lofdahl@yahoo.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Tramp and BusyBox problem?
Date: Thu, 19 Mar 2009 21:19:21 +0100 [thread overview]
Message-ID: <gpu9cc$qvg$1@news.albasani.net> (raw)
In-Reply-To: <mailman.3583.1237480793.31690.help-gnu-emacs@gnu.org>
Michael Albinus wrote:
> Mats Löfdahl <mats_lofdahl@yahoo.se> 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: http://www.solarphysics.kva.se/~mats/debug3.txt
>
> 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,
> test?
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
http://www.solarphysics.kva.se/~mats/debug4.txt
An error was echoed. I guess the info is in the debug buffer but here it
is from the *Messages* buffer as well:
----begin----
...
Loading tramp...done
Loading easymenu...done
Loading tramp...done
Loading time-date...done
Tramp: Opening connection for root@10.0.0.3 using scp...
Loading outline...
Loading easy-mmode...done
Loading outline...done
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh 10.0.0.3 -l root -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Sending password
Tramp: Found remote shell prompt on `10.0.0.3'
File error: `getconf PATH' returns with error
Tramp: `getconf PATH' not successful, using default value "/bin:/usr/bin".
Making completion list...
Quit
Making completion list...
Wrote /home/mats/debug4.txt
byte-code: Beginning of buffer
----end----
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!
/Mats
next prev parent reply other threads:[~2009-03-19 20:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 23:40 Tramp and BusyBox problem? Mats Löfdahl
2009-03-03 8:12 ` Mats Löfdahl
2009-03-03 16:29 ` Michael Albinus
[not found] ` <mailman.2277.1236097624.31690.help-gnu-emacs@gnu.org>
2009-03-04 21:26 ` Mats Löfdahl
2009-03-08 11:05 ` Michael Albinus
[not found] ` <mailman.2691.1236510346.31690.help-gnu-emacs@gnu.org>
2009-03-08 16:47 ` Mats Löfdahl
2009-03-15 16:28 ` Michael Albinus
[not found] ` <mailman.3243.1237134515.31690.help-gnu-emacs@gnu.org>
2009-03-15 18:01 ` Mats Löfdahl
2009-03-15 19:23 ` Michael Albinus
[not found] ` <mailman.3258.1237145041.31690.help-gnu-emacs@gnu.org>
2009-03-15 21:23 ` Mats Löfdahl
2009-03-17 20:37 ` Michael Albinus
[not found] ` <mailman.3431.1237322291.31690.help-gnu-emacs@gnu.org>
2009-03-17 22:30 ` Mats Löfdahl
2009-03-19 16:39 ` Michael Albinus
[not found] ` <mailman.3583.1237480793.31690.help-gnu-emacs@gnu.org>
2009-03-19 20:19 ` Mats Löfdahl [this message]
2009-03-19 21:54 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gpu9cc$qvg$1@news.albasani.net' \
--to=mats_lofdahl@yahoo.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).