[Top][All Lists]

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

Re: Couldn't find exit status opening directory by plink

From: Michael Albinus
Subject: Re: Couldn't find exit status opening directory by plink
Date: Thu, 14 Jun 2007 09:54:26 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

address@hidden writes:

> Starting Emacs and issuing this command:
> /plink:address@hidden:/home/me/
> I get one error the first time, and the one I posted the second time.

According to the debug buffer you've sent, there are problems indeed:

17:15:09 tramp-send-command-internal (6) # stty -inlcr -echo kill '^U' erase 
17:15:09 tramp-wait-for-regexp (6) # 
stty: standard input: Invalid argument
address@hidden ~ $ 

That's strange. Later on, your remote system is identified as "Linux
2.6.18-gentoo-r3-G3G4". It should accept the stty as it is.

Could you call the stty command directly in a shell on that host?
Could you check stty's man page what's wrong with this command?

17:15:40 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s 
"%A" t %i -1)' /home 2>/dev/null; echo tramp_exit_status $? 
17:15:40 tramp-wait-for-regexp (6) # 
(("`/home'") 8 0 0 -421032914.0 1173248849.0 1173248849.0 4096 "drwxr-xr-x" t 2 

tramp_exit_status 0
17:15:40 tramp-send-command-and-check (1) # File error: Couldn't find exit 
status of `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s "%A" t %i -1)' /home'

Here we see that the prompt did appear before the result of the stat
command. Therefore, Tramp could not check the return code, and it did

I've never seen this. Previous commands in the trace did show the
right order of exit status and prompt. Maybe we can cure it with a
proper stty command.

Best regards, Michael.

reply via email to

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