Sign in with
Sign up | Sign in
Your question

About crone service

Last response: in Linux/Free BSD
Share
December 9, 2009 11:41:13 AM

I want to know about ….cron service………I wat to change my iptables rules at specific times…..So how can i add it into my cron services..i want to do it daily 1.00 pm…. I have created 2 iptable files….with two different rules….am trying to restore the two files using cron service at two different times…… but its not working ,,,,, I am adding my crontab configuration below… 0 13 * * * iptables-restore /etc/sysconfig/iptables 30 13 * * * iptables-restore /etc/sysconfig/iptables2 I am using Fedora Core9….I have checked everything. Crone service is started…… Anybody can find a soultion…….please help me…….

More about : crone service

December 9, 2009 12:04:39 PM

Have you checked the logs for any entries at the time that the commands are scheduled to run?
m
0
l
December 9, 2009 6:34:39 PM

It sounds like a basic debug task. Are you using cron to fire a shell script? Do those scripts work if you invoke them from the command line? Can you get other commands to fire from cron?
m
0
l
December 21, 2009 1:59:37 AM

ok.....friends thanks for your response.....me itself found the solution......
so if you want to run a paticular service ......you have to find the real path of that particular service and you have to give it in cron.
m
0
l
!