Macos – Mac crontab is never created

cronmacosterminal

I am trying to setup a cron on my mac, but it seems that it never finishes creating a crontab for my user. I open terminal and enter:

$ crontab -e 

Which returns this:

crontab: no crontab for jjmay - using an empty one




















~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
"/tmp/crontab.rBdeP6yv1U" 0L, 0C

And then it waits there until I close out of the window, I have let it go for as long as 20min. I open another terminal window to check for the creation of my crontab and I get nothing.

$ crontab -l 
crontab: no crontab for jjmay

Any ideas on why I cannot create this, or if I can manually create my crontab so I can edit it?

Best Answer

This isn't about the editor, it's about user permissions. First become root:

sudo su -

Then edit the crontab for the proper user:

crontab -u username -e

After saving the file, can verify that it saved properly by running this:

crontab -u username -l
Related Question