ssh批量登录并查询系统信息shell
#!/bin/bash# 检查并创建必要的输出文件for file in login.txt out.txtdo if [ ! -f "$file" ]; then touch &...
批量修改root密码shell
#!/bin/bash# 检查输入参数if [ $# -ne 1 ]; then echo "Usage: $0 serverlist.txt" exit 1fi# 检查脚本是否有执行权限if [&nb...
Powered By Cheug's Blog
Copyright Cheug Rights Reserved.