You could create a bourne shell script called "Set_NZ_Time.sh" that contains the following:
Code:
#!/bin/sh
# Stop time warp messages
touch /var/timestamp
# Set the time to time server with appropriate timezone offset
TZ=Pacific/Auckland /hack/bin/rdate -vs 207.126.98.204
Once you have created the file, you will need to make it executable using the chmod command:
Code:
# chmod 755 Set_NZ_Time.sh
The it is just a matter of adding a line to your /hack/etc/crontab file:
Code:
# Synchronise the time on Monday mornings
17 01 * * 1 /hack/bin/Set_NZ_Time.sh > /dev/null 2>&1 &
Bookmarks