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: Michael Albinus
Subject: Re: answer to shell script question after login
Date: Fri, 09 Dec 2011 23:13:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Canellas <address@hidden> writes:

> Michael,

Hi Rodrigo,

sorry for the delay, I have been occupied otherwise.

> 14:45:41.202897 tramp-process-one-action (5) # Looking for regexp "\(\(Digite 
> o numero do ambiente e pressione enter\)\s-*\)\'" from remote shell

You have defined the regexp

  "\\(Digite o numero do ambiente e pressione enter:\\)\\s-*"

Tramp expects this to be at the end of the buffer (see the docstring
of `tramp-actions-before-shell'), and extends this to

  "\\(\\(Digite o numero do ambiente e pressione enter\\)\\s-*\\)\\'".

But in fact, there are non-printable characters as you have also said
the other message:

  Digite o numero do ambiente e pressione enter^M

You could expand the regexp for the trailing ^M. However, you want to
send the selection "3" only when the whole login message is visible. So
I recommend that you compose a regexp matching the last line of the
login message, simply like this:

  "19- MDBACT.+"

Best regards, Michael.



reply via email to

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