tera termマクロ 基本
logdir = 'C:\Users\xxxxx\Desktop\'
logfile = logdir
scenario = '3-7_'
strconcat logfile scenario
strconcat logfile 'commands'
strconcat logfile '.log'
logopen logfile 0 1
sendln '######## hogehoge 1 ########'
wait '[root@localhost ~]#'
sendln 'ifconfig | grep -A 4 eno'
wait '[root@localhost ~]#'
sendln '######## packet count start ########'
wait '[root@localhost ~]#'
sendln '######## ping test ########'
wait '[root@localhost ~]#'
sendln 'ping -c 5 8.8.8.8'
wait '[root@localhost ~]#'
sendln '######## Tracert test ########'
wait '[root@localhost ~]#'
sendln 'traceroute 8.8.8.8
wait '[root@localhost ~]#'