Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 26 April 2024, 04:12:47 pm

Login with username, password and session length

Visit the Official Endian Reference Manual  HERE
14247 Posts in 4376 Topics by 6493 Members
Latest Member: thiagodod
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  2.3 cron question
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 2.3 cron question  (Read 5049 times)
NavSol
Jr. Member
*
Offline Offline

Posts: 4


« on: Friday 04 December 2009, 10:09:19 pm »

Hi
We are using endian 2.3 community as a content filter box and the time is drifting quite a lot. I have put a script in cron.hourly and I would like to keep a check on whether it runs OK with a log entry. I can run the file ok so i know that I have everything correct there, just would like proof that is OK automatically. I have checked the syslog.conf file and can't find an entry there for cron jobs so should there be or am I looking in the wrong place?
Thanks in advance.
Code:
#!/bin/bash

/etc/init.d/ntpd stop

wait ${!}

echo Syncing Time...

/usr/sbin/ntpdate 192.168.1.2

#/usr/sbin/ntpdate 130.88.200.4
wait ${!}

/etc/init.d/ntpd start

wait ${!}
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.031 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com