Using telnet connection, sending commands and receiving data using putty, plink or hyperterminal -


I need to create a batch file and script that will issue two commands to a resident and log the requested data into a file . I have a profile of connection made in Putini and can create a batch file which will open the session and will join both the clerical and putty. From there, I can manually paste the command into Lipx and get the data.

The command looks like this: "# 12345678D @ 5,19 [ETX]" basically requests the last 5 sets of unmarked data, the next order is also easy ... "# 12345678 OK, 56 [ETX] "Accepts data and is sent as a dancer.

One complexity is that if the connection takes about 5 to 10 seconds, then install it so that there is a waiting or sleep before the first command.

Finally this batch file and script needs to be run once in an hour. I am relatively inexperienced with codes and languages, and appreciate any help or direction.

Neither the putty nor the pipe or the hyperterminal option is the tool: net cat (Or nc ), which is specially done for that whole - it provides piping between stdin / stdout and network sockets.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -