Ticket #29103

Run a Script through a Telnet Session

Eröffnet am: 2012-07-24 21:23 Letztes Update: 2015-11-07 21:05

Auswertung:
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

Hi,

i would like to run a Teraterm Macro on a Remote Window Server connected by a Telnet Session.

I used the command ttmacro and the result was the freeze of the Telnet Client.

How can i run the script?

Thenks in advance,

Best Regards,

CSUP

Ticket-Verlauf (3/13 Historien)

2012-07-24 21:23 Aktualisiert von: csup
  • New Ticket "Run a Script through a Telnet Session" created
2012-07-25 22:25 Aktualisiert von: maya
  • Typ Update from Funktionsanfragen to Support-Anfragen
Kommentar

Please read login.ttl. I guess it helps to learn how to control ttermpro.exe with ttpmacro.exe.

2012-07-27 18:59 Aktualisiert von: csup
Kommentar

I try to explain our configuration:

C--(WAN)--S--(LAN)--T

I would like to run a ttmacro session on the Server S (Windows) to the Unix Machine T.

I use a telnet client to access to the Server S from a client C (Windows).

I think that the problem could be related the managment of the graphical interface.

I underline that i have a freeze of the telnet session (on the Client C) when i run the ttmacro command.

2012-08-01 20:15 Aktualisiert von: yutakapon
Kommentar

Hi csup,

I do not understand what you say. Is C Windows? Where do you execute the Tera Term on your server?

2012-08-27 21:33 Aktualisiert von: csup
Kommentar

Reply To yutakapon

Hi csup, I do not understand what you say. Is C Windows? Where do you execute the Tera Term on your server?

Hi yutakapon,

I confirm you that the client C is a Windows machine.

The scripts files are installed on the S Machine (Windows), they access to the T machine (Unix) and i must run them from the C machine (Windows).

I can't access directly to T from C (they are in two different networks).

Thanks in advance,

Best Regards,

CSUP

2012-08-27 22:19 Aktualisiert von: yutakapon
Kommentar

Hi csup,

Would you please use the stone freeware on the S machine? If you use the S as intermidiate server, you will be able to the T machien via the S machine. The stone can be work well on the Microsoft Windows family.

cf. stone http://www.gcd.org/sengoku/stone/Welcome.en.html

2012-08-29 23:01 Aktualisiert von: csup
Kommentar

Dear yutakapon,

i tried to use the software suggested by you in order to solve my problem.

unfortunatly, the routers between the client C and the server S are configurated in order to forward only telnet port (23).

So, i can't use this software as solution of my problem.

The perfect solution should be: 1) Perform a Telnet connection to Server S from client C 2) Run the ttmacro software on the server S

But, as described in my first post, the step 2 in not performable because the ttmacro doesn't work in this way.

In your opinion, is it possible to use/modify/find a workaround to use ttmacro during a telnet session??

Best Regards, CSUP

2012-08-30 00:06 Aktualisiert von: yutakapon
  • Verantwortlicher Update from (Keine) to yutakapon
Kommentar

Hi csup,

I think that your motivation will be archived by using the stone freeware. Please install the stone S(Windows) machine and execute below command line.

c:\>stone T:22 23 NOTE: T is T's ip address.

So, you can telnet from C to S by using port 23, and next the stone will redirect the port 23 packet to the T machine. As a result, you can connect to the T via S.

Thanks.

2012-08-30 20:46 Aktualisiert von: csup
Kommentar
(This comment has been deleted)
2012-08-30 20:47 Aktualisiert von: csup
Kommentar

Reply To yutakapon

Hi csup, I think that your motivation will be archived by using the stone freeware. Please install the stone S(Windows) machine and execute below command line. c:\>stone T:22 23 NOTE: T is T's ip address. So, you can telnet from C to S by using port 23, and next the stone will redirect the port 23 packet to the T machine. As a result, you can connect to the T via S. Thanks.

Hi yutakapon,

thank you very much for your support,

i tried run "stone" using this command on server S:

172.27.2.20:telnet 23 (NOTE: 172.27.2.20 is the ip address of T)

This command work only if the Telnet Server is not running on the server S, otherwise the port 23 is busy, then "stone" interrupts his execution returning an error.

I can't stop the Telnet Server on the S machine becouse is the only way that i have in order to control the server S.

Have you others idea about this problem?

Best Regards,

Thanks in advance,

CSUP

2012-08-30 23:39 Aktualisiert von: yutakapon
Kommentar

Hi csup,

Can you change the port number from 23 to any value?

For example: c:\>stone 172.27.2.20:telnet 5023

2012-08-31 17:49 Aktualisiert von: csup
Kommentar

Hi yutakapon,

as i told you, i can't modify the configuration of the router between C and S, the current configuration foresees the "port forwarding" only for the port 23.

Have you other suggestions?

Thanks in advance, Best Regards,

CSUP

2015-11-07 21:05 Aktualisiert von: yutakapon
  • Verantwortlicher Update from yutakapon to (Keine)

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