Answer the question
In order to leave comments, you need to log in
Why can't the crontab file be edited?
When working with cron (in windows), I noticed a feature. That the file needs to be edited directly in vi itself, i.e. crontab -e. And if we say take your file and substitute it for the one created with -e. That file works clumsily, not all tasks are performed. Any guesses what it might be related to? And if you edit the file created by the crontab with the same notepad, then everything is fine. Could it be an encoding problem?
Answer the question
In order to leave comments, you need to log in
A strange question, It's like asking: "Why put porridge in your mouth? Maybe right in your stomach!"
crontab -e is needed so that you do not make mistakes when editing. I strongly recommend doing just that, and nothing else.
But if you want trouble:
1. stop the "crond" daemon
2. overwrite the file
3. start the daemon
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question