"crontab" change dynamically shell code example
Example: "crontab" change dynamically shell
echo "$(echo '* * * * * php /srv/path/to/file.php' ; crontab -l)" | crontab -
echo "$(echo '* * * * * php /srv/path/to/file.php' ; crontab -l)" | crontab -