马哥Python运维自动化与DevOps项目特训
2023-06-14 12:28 作者:一起学习fee1024 | 我要投稿
python 运维常用脚本
import os
path = "D:/UASM64/include/"
dirs = os.listdir(path)
temp=[];
for file in dirs:
temp.append(os.path.join(path, file))
for x in temp:
os.utime(x, (1577808000, 1577808000))
Python 实现的自动化服务器管理
import sys
import os
import paramiko
ssh = paramiko.SSHClient()