调用和监视可执行文件
monitcall的Python项目详细描述
monitcall是一个运行可执行文件和 注意过程中的死锁。
用法:
monitcall [-h] [-a ARGS] [-t CYCLES] [-l LIMIT] [-s SIGNAL] [-d DEBUGLOG] [-v] cmd
脚本将调用给定的命令(cmd)和 给定参数(args)。如果命令的CPU使用率更高 超过给定限值(限值)超过个周期 命令被信号杀死了。
示例:
提取ms word文档的内容 标准输出电话上打印的UTF-8文本:
monitcall wvWare -a '-c utf-8 --nographics mydocument.doc'
已知问题:
The argument string must not start with -a. Like this:
... -a '-a 4 -c utf-8 ...'This seems to be a bug in the argparse module
更改历史记录
0.3.1(2010-08-27)
- fixed binary
0.3(2010-08-27)
- fixed nameerror
- added some tests
0.2(2010-08-26)
- first public release