Chinaunix
标题:
请教有关exec的问题
[打印本页]
作者:
JCheung
时间:
2010-01-29 20:41
标题:
请教有关exec的问题
请教有关exec系列函数的问题
请问比如有一个 /test/a.py
然后我的守护进程 也在 /test/下
但是我想在子进程中用exec函数去执行 a.py 不知道怎么写
execl(“/bin/python”, “/test/a.py”);
这样么?
请教下
谢谢!
我只用过
execl("/etc/init.d/httpd", "start");
这样的
作者:
prolj
时间:
2010-01-29 20:47
execp(“python”, “/test/a.py”);
???
作者:
JCheung
时间:
2010-01-29 22:46
怎么也得给个path吧?
作者:
cr858923
时间:
2010-02-02 18:26
execl("/bin/python/", "python", "/test/a.py", NULL);
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2