[Top][All Lists]
[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.
- answer to shell script question after login, Canellas, 2011/12/07
- Re: answer to shell script question after login, Michael Albinus, 2011/12/08
- Message not available
- Re: answer to shell script question after login, Michael Albinus, 2011/12/08
- Re: answer to shell script question after login, Canellas, 2011/12/08
- Re: answer to shell script question after login, Michael Albinus, 2011/12/08
- Re: answer to shell script question after login, Canellas, 2011/12/08
- Re: answer to shell script question after login, Michael Albinus, 2011/12/08
- Message not available
- Message not available
- Re: answer to shell script question after login,
Michael Albinus <=
- Re: answer to shell script question after login, Canellas, 2011/12/09
- Re: answer to shell script question after login, Canellas, 2011/12/12
- Re: answer to shell script question after login, Michael Albinus, 2011/12/12
- Re: answer to shell script question after login, Canellas, 2011/12/12
- Re: answer to shell script question after login, Michael Albinus, 2011/12/12
- Re: answer to shell script question after login, Canellas, 2011/12/12
- Re: answer to shell script question after login, Michael Albinus, 2011/12/13