puttyを呼び出すように指定されたコマンドを実行
ファイル名:putty.sh
ソースコード:
@echo off
echo ===============================
echo Production server
echo ===============================
echo please input “y" to continue……
set /p input=
if “%input%"=="y" (
“putty.exe" -pw serverPassword -m script.txt username@IP
echo reboot server command executed.
) else echo Does not execute any command
pause