[Top][All Lists]

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

Re: Tramp and sudo

From: Kai Großjohann
Subject: Re: Tramp and sudo
Date: Wed, 13 Aug 2003 22:55:52 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

address@hidden (Björn Lindström) writes:

> address@hidden (Kai Großjohann) writes:
>> Ah, hm.  Please (setq tramp-debug-buffer t) [this might be the
>> default] and then do it again and send the *debug tramp/foo* buffer.
> Here it is (the ^[ in the last line is a literal escape):
> # Opening connection for `root' using `sudo'...
> # Waiting for prompts from remote shell
> # Waiting 60s for prompt from remote shell
> # Found remote shell prompt.
> $ exec env 'ENV=' 'PS1=$ ' /bin/sh
> # Waiting 30s for remote `/bin/sh' to come up...
> exec env 'ENV=' 'PS1=$ ' /bin/sh\n[[Regexp `\(^[^#$%>
> ]*[#$%>] *\|^[^#$%>
> ]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z]\)?\)\'' not found in 30 secs]]

It seems that after Tramp typed

    exec env 'ENV=' 'PS1=$ ' /bin/sh

at the remote shell, the remote shell just echoed the input, like so:

    exec env 'ENV=' 'PS1=$ ' /bin/sh\n

Note the trailing \n.

Can you reproduce this behavior by logging in manually from outside
of Emacs?  From inside of Emacs but outside of Tramp?

What's going on here?  Weird.
Two cafe au lait please, but without milk.

reply via email to

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