subprocess的实例不能pickle
2010-09-19 20:41
381 查看
#!/usr/bin/env python#encoding=utf-8from subprocess import Popen, PIPE, STDOUTcmd = '/home/mlzboy/my/ide/test/time_sleep.py'p = Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)print type(p)import picklepickle.dump(p,open("./p.pickle","wb"))print "done!"
相关文章推荐
- windows上subprocess.Popen的参数close_fds=True与stdin/stdout/stderr不能共存
- ubuntu不能升级和安装软件的解决办法(E: Sub-process /usr/bin/dpkg returned an error code (1) )
- 设置了process的Service不能获取Activity所在进程的实例对象
- 某个软件无法安装代码如下E: Sub-process /usr/bin/dpkg returned an error code (1)
- Python_cmd的各种实现方法 (subprocess.Popen, os.system和commands.getstatusoutput)
- E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方案
- 抽象类不能被实例化
- Python模块之subprocess--使用Popen来调用系统命令
- python subprocess 杀掉全部派生的子进程
- python subprocess模块使用例子
- SetProcessWorkingSetSize的实例
- 在main()方法中不能创建非静态内部类的实例
- python subprocess 启动程序出错
- python subprocess用ctrl+c 的方式终止
- ubuntu 下出现E: Sub-process /usr/bin/dpkg returned an error code
- Sub-process /usr/bin/dpkg returned an error code (1) 的解决办法
- 处理 C++ 项目中的 IntelliSense 失败:输入类实例后,不能显示其成员几成员函数问题解决
- python subprocess Popen
- 为什么Java中类方法不能访问实例方法
- Sub-process /usr/bin/dpkg returned an error code