tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp and sudo


From: Björn Lindström
Subject: Re: Tramp and sudo
Date: Sat, 18 Oct 2003 14:13:04 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

address@hidden (Kai Großjohann) writes:

> Yep.  It seems this is the same problem that Tramp is also seeing.
>
> Try calling start-process to start a shell, then feed it some input
> using process-send-string.  Do you see the same thing?
>
> You could try ending the commands with \n, or with \r, or with \r\n.
> Maybe one of them works better than the others.
>
> Not sure what other things to try.  Hm.  Oh, certainly "emacs -q
> -no-site-file" is one of the things to try.

It's been a while. Due to reasons I have now downgraded Emacs to 21.3,
and I am using Tramp 2.0.36. /bin/sh is now ash (NetBSD's Bourne shell).

I still have a similar problem, however. But now the Tramp debug log
looks like this:

# Opening connection for `root' using `sudo'...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Found remote shell prompt.
$ unset correct
unset correct\n[[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 60 secs]]

I have also tried running the following commands in sequence:

(start-process "sh" "sh" "/bin/sh")
(process-send-string "sh" "echo N\n")
(process-send-string "sh" "echo R\r")
(process-send-string "sh" "echo RN\r\n")

Which results in this:

$ echo N
N
$ echo R
R
$ echo RN
RN
$ 
$ 

Is this giving you any clues?

-- 
Björn Lindström <address@hidden>
http://bkhl.elektrubadur.se/





reply via email to

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