Want to get a crontab scheduled task under the Mac, thought it would be as smooth as Linux, the result is a wall, the error message is as follows:
? Autoshell CRONTAB-E
Crontab:no crontab for laijingli-using an empty one
Crontab:temp file must be edited on place
This is the must is edited in the place hint is too vague, the internet has said that the problem of the editor environment variables, plus also can not AH
? Autoshell Editor=vim CRONTAB-E
Crontab:no crontab for laijingli-using an empty one
Crontab:temp file must be edited on place
? Autoshell Editor=vi CRONTAB-E
Crontab:no crontab for laijingli-using an empty one
Crontab:temp file must be edited on place
Refer to a foreign buddy's method, Vim set to file type crontab files do not do backup, writebackup, although not very clear, but the role of, look forward to master guidance maze.
? ~ Vim ~/.VIMRC Add the following 2 lines
21 "When resolving Crontab-e, prompt crontab:temp file must be edited in place
Autocmd filetype crontab setlocal nobackup nowritebackup
? ~ crontab-l
1 * * * */users/laijingli/autoshell/fastproxy >>/tmp/fastproxy.log
reference:http://calebthompson.io/crontab-and-vim-sitting-in-a-tree/
Problem solving for ordinary users unable to create crontab under Mac