Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
cron question
View previous topic :: View next topic  
Author Message
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Wed Apr 25, 2012 11:13 pm    Post subject: cron question Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Apr 26, 2012 5:35 am    Post subject: Reply with quote

To kill crond just use
Code:
killall crond

and start it with
Code:
crond -l notice


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
View user's profile Send private message Visit poster's website
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Fri Apr 27, 2012 6:31 am    Post subject: Reply with quote

gerasimos_h wrote:
To kill crond just use
Code:
killall crond

and start it with
Code:
crond -l notice


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 ( Smile took a bit of remembering - I don't use vi often).

Paul.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional