I have an install script that sets up a user.
Using the install script, I want to apply a cronjob that gets executed by that user (myuser):
0 4 * * * /home/myuser/script-to-run-at-4am.sh
I have found that using the following command I can edit the crontab from another user:
sudo crontab -u myuser -e
Is there an alternative command I can use that would apply my cron job from a file to the myuser crontab?