linux - Set more than one cronjob with php for raspberry pi -
i want set several cronjobs raspberry pi php. code works fine if there 1 cronjob insert this:
$hour = $_get["hour"]; $mins = $_get["mins"]; exec('echo "'.$mins.' '.$hour.' * * * sudo gpio -g write 18 1" | crontab -'); if want add together 1 straight after first one, example:
exec('echo "'.$mins.' '.$hour.' * * * sudo /home/pi/raspberry-remote/./send 11010 1 1" | crontab -'); it execute lastly one.. how can set more 1 cronjob?
thank you!
i work seperated ";"
exec('echo "'.$mins.' '.$hour.' * * * sudo gpio -g write 18 1; sudo /home/pi/raspberry-remote/./send 11010 1 1" | crontab -'); php linux cron raspberry-pi
No comments:
Post a Comment