会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
计算机是机器,重复性的工作交给它好了——我们要做更重要的创造性工作!
博客园
首页
新随笔
新文章
联系
订阅
管理
2008年12月26日
Linux下用PYTHON查找同名进程
摘要: 1.可执行程序 os.system('pgrep %s > %s' % (process, output)) pidfile = open("output", 'r') totalpid = len(pidfile.readlines()) pidfile.close() if totalpid == 0 : ...
阅读全文
posted @ 2008-12-26 09:56 凌度
阅读(2811)
评论(0)
推荐(0)
编辑