From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Mats_L=F6fdahl?= Newsgroups: gmane.emacs.help Subject: Re: Tramp and BusyBox problem? Date: Thu, 19 Mar 2009 21:19:21 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1237495381 7580 80.91.229.12 (19 Mar 2009 20:43:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 20:43:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 21:44:17 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkP5Z-0006hj-Br for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 21:43:41 +0100 Original-Received: from localhost ([127.0.0.1]:48365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkP4C-0007BR-V5 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 16:42:16 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 70 Original-X-Trace: news.albasani.net ozoO++DZypwVLbP0rb2VNBZBGKPbHuvmzObc9KsWIRdtC8zOyEXyBE4OiDkSUXcO92awoLPiNBfz9EDkrfn8OpvIp3fa+teDwB2HeE4gwESC+03BYBWLytwIYYySdRfP Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 19 Mar 2009 20:19:24 +0000 (UTC) X-User-ID: Qjbr/1n58ZvrZXs7UHVev3OIMfYdJzLrl2VSwJbshrXFm9zWnxAUzEa7/GvO8xg7U7RUB9BzcjnsC/tnEYwBSQ== In-Reply-To: Cancel-Lock: sha1:77haA5nIj2y3vTNl/+TE+MuXojo= User-Agent: Thunderbird 2.0.0.19 (X11/20090105) X-NNTP-Posting-Host: C0Ep1oZuwmHb06bzdp1NxLsmgDzpYJAAFLj1WZdDYLs= Original-Xref: news.stanford.edu gnu.emacs.help:167814 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63107 Archived-At: Michael Albinus wrote: > Mats Löfdahl 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