📄 reset_wrong.sh
字号:
#!/bin/bash
#defind passwd ip file env
read –p 'input password : ' –s passwd
read –p 'input serverip files :' –s ip
#you may change the local differient it file
#example ipbj
for host in 'more ./$ip'
do
expect –c '
spawn /usr/bin/ssh $host shutdown –r now:
expect \'password*\'
send \'$passwd\r\';
expent eof;'
done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -