In my linux box
crontab -u userName -l > fileName
lists the crontab file for the username in fileName.
Then I would use a ruby (or other language) script to update the file.
Finally, I would use
crontab -u userName fileName
to update crontab for username
David harris
source share