Welcome, Guest. Please login or register.
Did you miss your activation email?
Thursday 31 October 2024, 02:24:08 am

Login with username, password and session length

Download the latest community FREE version  HERE
14248 Posts in 4376 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  2.3 cron question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 2.3 cron question  (Read 7471 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.047 seconds with 20 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com