Use crontab-e When you add a scheduled task, you encounter the following error " Error detected while PROCESSING/ROOT/.VIMRC: ":
[Root@~]# crontab-eError detected whileProcessing/Root/. vimrc:line -: E518:unknown option:FDM=syntaxline the: E518:unknown Option:autochdir
The first method: intuitively, according to the hint, the FDM and autochdir instructions should not be supported, just to determine if the command is supported, as follows:
[[email protected]~]# vim ~/.VIMRC" " Not in VI instruction list configuration if has ("FDM") FDM =syntax "CATGS configuration to resolve E257 problem/HTTP/ Blog.csdn.net/billfeller/article/details/40316501set tags=tags;set autochdir endif
You can now edit the timer task using CRONTAB-E.
The second method:
To modify the default editor:
[Root@~]# vim ~/.BASHRC export EDITOR=/usr/bin/vim [Root@~]# source ~/.BASHRC
You can now edit the timer task using CRONTAB-E.
Appendix
1. Through the/var/log/cron can find the timing task execution log;
2. Through/var/spool/cron/tmp. Xxxxe1i7ve can find out the currently executing scheduled tasks;
How to troubleshoot "Error detected while PROCESSING/ROOT/.VIMRC:"