I try to restart my LTE modem via cron. I have a PHP file (restart.php) with exec() function:
exec('usb_modeswitch -R -v 12d1 -p 1436');
It works fine if I type in console (as root):
php restart.php
But not works via crontab (for root):
*/10 * * * * php /var/www/html/modem/restart.php
I have 777 permissions for restart.php file and the path is ok.
What is wrong? And how I can fix it? Any ideas?
Please, help