Home  >  Article  >  Backend Development  >  PHP调用pytnon程序有关问题,求解答

PHP调用pytnon程序有关问题,求解答

WBOY
WBOYOriginal
2016-06-13 12:42:01973browse

PHP调用pytnon程序问题,急求解答

本帖最后由 chuandali 于 2013-07-18 20:00:58 编辑     各位大侠,问题是这样的:我的界面需要与系统交互,想通过
exec("python /home/huliang/nessus_schedul/application_update.py 202.115.36.218 app",$out,$states);
语句执行系统调用,
python /home/huliang/nessus_schedul/application_update.py 202.115.36.218 app
中“202.115.36.218”以及“app”是所需要的参数,语句
python /home/huliang/nessus_schedul/application_update.py 202.115.36.218 app
在linux下可以执行,但是作为exec()函数的第一个参数就不能正确执行了,球大侠指点,给出解决方案,不胜感激啊。。。
PHP Linux Python
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn