Ticket #14241

Running a macro after a (GUI) connect
Eröffnet am: 2008-12-09 22:55 Letztes Update: 1970-01-01 09:00

Auswertung:
(Anonym)
Verantwortlicher:
(Keine)
Status:
Offen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

I would appreciate the following feature:

a extension to the "new connection" dialog with a checkbox "after connect run macro ..." and a combobox with some user selectable macros (just like the hosts-combo)
plus integration of this feature to the command line.

we have some devices that would require some routine procedure when logging in.
but the ip-adress would almost always be different.
So instead of 'n'-Macrofiles with only different connect statements this would help having only one general purpose macro while making use of the hosts-combo.

a different way to achieve this could be to open the "new connection" dialog from the "connect" command in a macro using a special option - i.e. a "connect /ask_the_user" or sth. similar.

searching the forum with "macro after connect" did not do what i expected it to do. :-)

Ticket-Verlauf (3/4 Historien)

2008-12-16 19:17 Aktualisiert von: maya
Kommentar
If you want to connect with SSH, '/ask4passwd' command line option might do the trick.
2008-12-16 21:08 Aktualisiert von: None
Kommentar
unfortunately its only plain (boring) telnet.
2008-12-16 22:54 Aktualisiert von: None
Kommentar
Example:
inputbox 'input hostname' 'test' '192.168.1.'
host = inputstr
sprintf "%s:23 /nossh" host
conn = inputstr
connect conn
2009-01-08 16:23 Aktualisiert von: None
Kommentar
After connect with telnet, Tera Term macro can send/receive line or characters.
See also login.ttl, the sample script.

Example:
inputbox 'input hostname' 'test' '192.168.1.'
host = inputstr
sprintf "%s:23 /nossh" host
conn = inputstr

inputbox 'input login name' 'test'
login = inputstr

inputbox 'input password' 'test'
passwd = inputstr

connect conn
; use login and passwd

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden