I'm trying to create a crontab on mac.
I've tried crontab -e
which takes me to what appears to be an empty file opened with vim. I make no changes and simply press esc, :, w, then q to save and exit.
But when I try crontab -l
I see:
crontab -l
crontab: no crontab for st
I tried exactly the same thing as root but I get the same outcome
MacBook-Pro:~ root# crontab -u st -e
crontab: no crontab for st - using an empty one
-- I save an exit vim as above --
crontab: no changes made to crontab
MacBook-Pro:~ root# crontab -u st -l
crontab: no crontab for st
I'm struggling to figure out why this isn't working as expected
0,15,30,45 * * * * cd ~/.scripts && ./work.sh
what is the purpose of./
i.e. why not justwork.sh
?