|
From: | Canellas |
Subject: | Re: answer to shell script question after login |
Date: | Thu, 8 Dec 2011 09:37:23 -0200 |
(defconst my-tramp-prompt-regexp
(concat (regexp-opt '("Digite o numero do ambiente e pressione enter:") t)
"\\s-*")
"BLABLABLA.")
(defun my-tramp-action (proc vec)
"Enter \"3\" in order to give a correct answer."
(save-window-excursion
(with-current-buffer (tramp-get-connection-buffer vec)
(tramp-message vec 6 "\n%s" (buffer-string))
(tramp-send-string vec "3"))))
(add-to-list 'tramp-actions-before-shell
'(my-tramp-prompt-regexp my-tramp-action))
Canellas <address@hidden> writes:
> Michael,
Hi Rodrigo,
Of course. Just send the login dialogue from an ordinary shell, and
> Is it ok to send another email, showing what the remote shell script
> displays, so that someone could help me configuring
> `tramp-actions-before-shell'?
we'll try to give you a recipe.
If there are no sensible information, you might keep address@hidden
in Cc, in order to let other people find the recipe in the
archives. Otherwise, send it to me off-list.
> Thanks!
>
> Rodrigo Canellas
Best regards, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |