Portal Home > Knowledgebase > Articles Database > Can't save crontab
Can't save crontab
Posted by kongken, 10-12-2009, 06:36 AM |
I want to run a script every minutes, i run command
crontab -e
to create , but i unable to save.
*/2 * * * * /root/iptables/autoblock.sh
This is my crontab.
I type :w, nothing change, :wq, nothing, :!, nothing.
How to save it ?
|
Posted by adminpaul, 10-12-2009, 08:24 AM |
Are you getting any error message while saving ?
|
Posted by eth1, 10-12-2009, 08:38 AM |
What is the output of the following commands,
and
|
Posted by eth10, 10-12-2009, 08:43 AM |
its crtl+o to save and save ctrl+x to quit in cron
|
Posted by david510, 10-12-2009, 09:07 AM |
What message do you get while saving the crontab.
The way the crontab is opened depends on the editor it uses. It is uses nano, you need to save using cntrl+x and press "y". If it is vi, then use :wq
|
Posted by kongken, 10-13-2009, 12:52 AM |
Oh fixed. Just Esc then :wq and Enter.
|
Add to Favourites Print this Article
Also Read