Sending commands to a Tera Term via script file

Adam picture Adam · Jun 30, 2015 · Viewed 35.3k times · Source

I am testing some boards and the system used to test these is Tera Term. In Tera Term I use the Serial Port to send commands to the board in order to log in and run certain settings that I want.

Instead of typing these commands each time I test a board I want to create a program that sends these commands without the requirement to type them again and again each time.

Also I need to set a delay between each command as the system needs to to load between them.

Question
How can automate the typing of commands and delay between subsequent commands in teraterm?

Answer

Adam picture Adam · Jul 1, 2015

I used the Tera Term Language (TTL) and created a macro which solved my problem. I used code to wait for a prompt from the system and then print out the command I wanted.

Here's a link to the TTL syntax:
http://ttssh2.osdn.jp/manual/en/macro/syntax/