首页 > 开发 > Linux Shell > 正文

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

2020-07-27 19:18:50
字体:
来源:转载
供稿:网友

复制代码 代码如下:

@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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表