$cat hello,py
print 'hello world'
$python
>>>execfile('hello.py')
hello world
>>>import os
>>>os.execve('hello.py', (), {})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 8] Exec format error
In windows, os.execve() works fine, but in ubunbtu, it doesnot work.
ahout os.exeve()
- sw2wolf
- 帖子: 435
- 注册时间: 2007-10-05 21:02
- sw2wolf
- 帖子: 435
- 注册时间: 2007-10-05 21:02
- nobrain
- 帖子: 808
- 注册时间: 2005-08-25 13:58
- 来自: ustc
- 联系: