Sublime Forum

How to edit crontab?

#1

The following launches ST and immediately returns with no changes/edits made.

EDITOR="subl -w" crontab -e

1 Like

#2

I can’t reproduce this on Ubuntu 18.04 (or 14.04) with build 3211. Which OS/version are you using?

0 Likes

#3

MacOS Mojave with ST 3188.

0 Likes

#4

Please see https://askubuntu.com/questions/844064/how-can-i-set-sublime-as-default-text-editor-for-crontab#844067. crontab on macos expects EDITOR to point to an executable, it doesn’t run the editor in a shell. You’ll need to make an executable shell-script that runs subl -w and use that with crontab.

Note: this isn’t an issue for other crontab implementations. On linux this works fine.

4 Likes