tramp-devel
[Top][All Lists]
Advanced

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

FW: tramp (2.1.1); tramp hangs on 'Setting shell prompt'


From: Kowalik, Yarek
Subject: FW: tramp (2.1.1); tramp hangs on 'Setting shell prompt'
Date: Mon, 18 Oct 2004 13:39:23 -0700

 
The question posed to Kai would probably be better directed here... Please help.

Note: the remote system is a RedHat 7.2 box, I am connecting using "scp" 
method. Both ends use 'zsh' shell.  The basic problem is that when using 
cygwin/zsh as the basis for emacs and tramp, carriage returns mess up the 
connection (mostly for local commands created with 'concat' and 'format' lisp 
commnads, I think).

Thanks!

Yarek
-----Original Message-----
From: Kowalik, Yarek 
Sent: Monday, October 18, 2004 1:29 PM
To: Kowalik, Yarek; address@hidden
Subject: RE: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

See the attachment for complete *debug-tramp.
 

-----Original Message-----
From: Kowalik, Yarek
Sent: Monday, October 18, 2004 1:17 PM
To: 'address@hidden'
Subject: FW: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

Hi Kai,

I hope this is a right place to send an email for help.  I seem to be having 
some problems with tramp, and I believe it is related to the 'concat' command: 
an extra carriage return that's silently added at the end of several command 
constructs is preventing tramp to work properly in my environment (emacs 
started from within cygwin's zsh).  

Can you please check if you know how to make emacs concat command work without 
adding the silent carriage return within tramp? 

Many thanks,

Yarek 

-----Original Message-----
From: Kowalik, Yarek
Sent: Monday, October 18, 2004 1:14 PM
To: 'Phil Suh'
Subject: RE: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

I got a part way along the way in making tramp work. My setup is as follows:

1. cygwin, including zsh
2. starting emacs under cywin's zsh
3. changing the following in my .emacs:

(custom-set-variables
 '(tramp-encoding-command-switch "-c")
 '(tramp-encoding-shell "c:/unix/cygwin/bin/zsh.exe")
)

That seems to get me some way along, but, for some reason I think that lisp 
concat function is tripping me up, as it seems to be adding extra ^M in the 
concatenation, which trips tramp up.  See debug output here:

# Opening connection for address@hidden using scp...
# Waiting 60s for local shell to come up...
# Sending command `ssh yarek.desktop -l yarek  -e none; echo "Tramp" 
"connection" "closed"; sleep 1'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host yarek.desktop # Looking for 
regexp "^.*\([pP]assword\|passphrase.*\):

# Looking for regexp ".*ogin: *" from remote shell # Looking for regexp "[$]* 
*" from remote shell # Found remote shell prompt on `yarek.desktop'
# Sending command to remote shell: unset HISTORY $ unset HISTORY # Sending 
command to remote shell: unset correct $ unset correct # Sending command to 
remote shell: unset autocorrect $ unset autocorrect $ exec env 'ENV=' 'PS1=$ ' 
/bin/sh # Waiting 30s for remote `/bin/sh' to come up...
env: /bin/sh
: No such file or directory
 
(that should be "^M" char after 'env:/bin/sh' above)

There are several commands after that that barf the same way, notably 'sleep 1' 
- and looking through tramp.el, all of them seem to be constructed with 
"concat".

Any thoughts?

Yarek

-----Original Message-----
From: Phil Suh [mailto:address@hidden
Sent: Monday, October 18, 2004 12:40 PM
To: Kowalik, Yarek
Subject: Re: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

On Mon, 18 Oct 2004, Kowalik, Yarek wrote:
>  I am running into exactly the same problem as you are... did you 
> discover a fix for this?

yarek,

Sadly, no, I have not figured this out. I'm back to doing Japanese in BBEdit. I 
haven't given it a stab for awhile, though, I might try again. I liked Meadow a 
lot.



Attachment: debug-tramp-1.txt
Description: debug-tramp-1.txt


reply via email to

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