«

win下调用putty执行命令脚本分享

时间:2024-3-2 15:30     作者:韩俊     分类: Linux



@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

标签: linux

热门推荐