2004.11.24 Wednesday
TeraTermマクロ:Command入力支援マクロ
本マクロを稼動しておき、特定のコマンドのみをキーワードで入力支援をさせる、その他のコマンドについては、通常入力を行うというマクロです。
waitで指定できるキーワードはマクロの仕様上10個までです。
timeout = 10
:loop
wait "Router>"<---プロンプト
wait "!END" "!CPU" "!INT"<--=キーワード
if result=0 then
goto loop
elseif result=1 then
end
elseif result=2 then
sendln
sendln "sh proc cpu"
elseif result=3 then
sendln
sendln "sh int E0"
endif
goto loop
waitで指定できるキーワードはマクロの仕様上10個までです。
timeout = 10
:loop
wait "Router>"<---プロンプト
wait "!END" "!CPU" "!INT"<--=キーワード
if result=0 then
goto loop
elseif result=1 then
end
elseif result=2 then
sendln
sendln "sh proc cpu"
elseif result=3 then
sendln
sendln "sh int E0"
endif
goto loop