I tried running crontab
on my Mac for the first time and got the following:
$ crontab -e
crontab: no crontab for User - using an empty one
crontab: subl -w: No such file or directory
crontab: "subl -w" exited with status 1
I've never used crontab on my Mac and have no idea why it's trying to reach the sublime command line tool.
However, if I type subl -w
into my console, sublime opens right up.
What's going on here?
Best Answer
This is a known problem with
crontab
and theEDITOR
variable which you must have set tosubl -w
. To quote from the man page ofbbedit
:Of course, for Sublime Text you can change
bbedit
tosubl
in that script.