I want to to exchange "30" and "16" with two variables "hour" and "mins" in a php exec function
$hour = 30;
$mins = 16;
exec('echo "30 16 * * * sudo /home/pi/raspberry-remote/./send 11010 1 1" | crontab -');
and changed it like that:
exec('echo "$hour $mins * * * sudo /home/pi/raspberry-remote/./send 11010 1 1" | crontab -');
How can i get this right? Thank you
'echo "' . $hour . ' ' . $mins . '