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: Fri, 9 Dec 2011 23:50:23 -0200

Thanks a lot!
I'll give it a try first thing next Monday.

Em 09/12/2011 19:13, "Michael Albinus" <address@hidden> escreveu:
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]