1.. 程序实现
2.. 使用说明
3.. 需要改进地方
1.. 程序实现
需要的安装包
python 安装wmi
介绍wmi 网站
http://tgolden.sc.sabren.com/python/wmi/index.html#what-is-it
xp 安装
Windows installer: http://timgolden.me.uk/python/downloads/WMI-1.4.6.win32.exe
直接安装即可
win7安装
Zipped-up source: http://timgolden.me.uk/python/downloads/WMI-1.4.6.zip
解压到python lib 目录下,查看readme文件进行安装
源码
#!-*- encoding: utf-8 -*-
import logging
import wmi
import os
import time
from ConfigParser import ConfigParser
CONFIGFILE='./config.ini'
config = ConfigParser()
config.read(CONFIGFILE)
ProgramPath = config.get('MonitorProgramPath','ProgramPath')
ProcessName = config.get('MonitorProcessName','ProcessName')
c = wmi.WMI()
def main():
ProList = [] #如果在main()函数之外ProList 不会清空列表内容.
for proces..
swap&&bonding&&route&&bandwidth
word 2003 错误 对话框打开时命令无法执行。
samba 配置 显示为乱码问题解决
changepassword 程序实现客户端更改密码
对XP为客户端访问smb服务器时,客户端记住密码的方法
-bash: Permission denied
SIOCGMIIREG
kernel panic -not syncing
Subversion独立服务安装;Subversion服务与apache 整合
FTP中的两种工作方式
PASV 命令 和PORT命令区别
定制Shell提示符 root用户组管理 sudo
用户登录自动发邮件到指定的邮箱
troubleshooting