Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 30 November 2024, 12:17:39 pm

Login with username, password and session length

The Latest Endian Firewall is now available for download HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
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 7746 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 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com