tramp-devel
[Top][All Lists]
Advanced

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

Re: answer to shell script question after login


From: Canellas
Subject: Re: answer to shell script question after login
Date: Mon, 12 Dec 2011 11:54:13 -0200

Michael,

Some progress (I think).

Ater I type the password, it takes a few seconds, and 'emacs' shows "Tramp: Waiting for prompts from remote shell" in the mini-buffer, but then hangs.

I type 'ctrl+g', "Find file: /address@hidden:/" is displayed again in the mini-buffer.

In the "*Messages*" there is:
"
Tramp: Opening connection for address@hidden using ssh2...
Tramp: Sending command `exec ssh -l arbor  -2 -e none dpa0002.dtc.intelig'

Tramp: Waiting for prompts from remote shell
"

And in the "*tramp/ssh2 address@hidden" there is:

"
3^M
(DBUNIT11) [/intelig/home/arbor/arb_dev_1.0.0]
"

I think a proper anwser was given to the remote script, and a prompt was supplied, but it does not appear in the mini-buffer, but only in the "*tramp/ssh..." window.

I inserted "(setq tramp-default-method "ssh2")" in my ".emacs" file.



Again, thanks for your help!




    Rodrigo Canellas

    -----------
    Programador C++
    Fotógrafo amador
 





2011/12/12 Michael Albinus <address@hidden>
Canellas <address@hidden> writes:

> Michael,

Hi Rodrigo,

> I appreciate a lot your help, but it still does not work. I am
> confident the regex is correct, so I think it is something else.
>
> (defconst dpa-prompt "19- MDBACT.+")

Maybe there is a trailing newline at the end of the login
message. ".+" does not match newlines.

Therefore, a valid regexp might be "19- MDBACT[^[:nonascii:]]+".

> Thanks!
>
> Rodrigo Canellas

Best regards, Michael.


reply via email to

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