win下调用putty执行命令脚本分享
时间:2020-12-03 17:25:01|栏目:Shell|点击: 次
复制代码 代码如下:
@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
栏 目:Shell
下一篇:使用Linux shell脚本实现FTP定时执行批量下载指定文件
本文标题:win下调用putty执行命令脚本分享
本文地址:http://www.codeinn.net/misctech/28974.html