Heim  >  Artikel  >  Backend-Entwicklung  >  PHP调用pytnon程序有关问题,求解答

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

WBOY
WBOYOriginal
2016-06-13 12:42:01975Durchsuche

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
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn