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

WBOY
Release: 2016-06-13 12:42:01
Original
1022 people have browsed it

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);
Copy after login
语句执行系统调用,
python /home/huliang/nessus_schedul/application_update.py 202.115.36.218 app
Copy after login
Copy after login
中“202.115.36.218”以及“app”是所需要的参数,语句
python /home/huliang/nessus_schedul/application_update.py 202.115.36.218 app
Copy after login
Copy after login
在linux下可以执行,但是作为exec()函数的第一个参数就不能正确执行了,球大侠指点,给出解决方案,不胜感激啊。。。
PHP Linux Python
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template