dongyunshan4066 2017-05-06 06:44
浏览 369

使用SHELL_EXEC传递多个参数

I've got a small c++ script on my raspberry pi which I want to execute from PHP on my small webserver, when I run the following command in my CLI the code executes : "/home/pi/kaku 1 a on". But when I run the following PHP code on my webserver shell_exec("/home/pi/kaku 1 a on"); the code that gets triggered by php simply doesn't run, When I don't give in any parameters by running shell_exec("/home/pi/kaku"); Than I simply get response that I need to fill in the parameters. The c++ code can be found overhere: https://github.com/chaanstra/raspKaku

The permissions of /home/pi/kaku has been set to 777 by using chmod for testing purposes. I am wondering why is my code not running?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 有卷积神经网络识别害虫的项目吗
    • ¥15 数据库数据成问号了,前台查询正常,数据库查询是?号
    • ¥15 算法使用了tf-idf,用手肘图确定k值确定不了,第四轮廓系数又太小才有0.006088746097507285,如何解决?(相关搜索:数据处理)
    • ¥15 彩灯控制电路,会的加我QQ1482956179
    • ¥200 相机拍直接转存到电脑上 立拍立穿无线局域网传
    • ¥15 (关键词-电路设计)
    • ¥15 如何解决MIPS计算是否溢出
    • ¥15 vue中我代理了iframe,iframe却走的是路由,没有显示该显示的网站,这个该如何处理
    • ¥15 操作系统相关算法中while();的含义
    • ¥15 CNVcaller安装后无法找到文件