Hi all,
i am going on with the development on the Arduino Yun platform....i decided to use php on the linux side and some bridge to communicate with the arduino. I need to start a php script on a specific event on the arduino and decided to use the Process class.
char binPath[17] = "/usr/bin/php-cli";
char scriptPath[37] = "/mnt/sda1/www/user/code/parsecan.php";
char inData[45];
Process execProc;
execProc.begin(binPath);
execProc.addParameter(scriptPath);
execProc.addParameter(inData);
Piece of code of course is in between some if, while, ecc.
If i use instead of php-cli a simple "mkdir /root/test1" everything is perfect but as soon as i use php-cli, process is not executed on the linino.
The same happens if i try to start php-cli via crontab....
The strange is that if i execute php-cli directly from shell, everything run perfectly.
It seems to be a "linux problem" but i do not have clear idea on how to troubleshoot even if i am quite good on linux....
maybe have you already faced with this problem ?
Thank you
Ettore