View previous topic :: View next topic |
Author |
Message |
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Wed Apr 25, 2012 11:13 pm Post subject: cron question |
|
|
I'm trying to add events to the root crontab. Have to do it remotely over an ssh login. For some reason, using crontab -e doesn't seem to be updating cron when I save and exit from Vim. My other alternative would be to restart cond. However, other than the crond start in /etc/rc.d/rc.M, I don't see a script that controls cron. Is there an easy way to restart the daemon?
Paul. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Apr 26, 2012 5:35 am Post subject: |
|
|
To kill crond just use
and start it with
Have you using "crontab -e -u $USER" ?
and are you ending editing with ":wq" in vi (elvis)?
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
toothandnail Member
Joined: 17 Mar 2011 Posts: 63 Location: Oxfordshire, UK
|
Posted: Fri Apr 27, 2012 6:31 am Post subject: |
|
|
gerasimos_h wrote: | To kill crond just use
and start it with
|
Thanks for that - I'm more used to Red Hat, which has a crond script...
Quote: | Have you using "crontab -e -u $USER" ?
and are you ending editing with ":wq" in vi (elvis)? |
Logged in as a user, su to root, then use 'crontab -e' without specifying the user. And yes, I was using ESC to get back to command mode, then :wq to exit the editor ( took a bit of remembering - I don't use vi often).
Paul. |
|
Back to top |
|
|