(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Kerio Reseller
Printer Friendly Version

SCO DST script


2007/03/06 Raouf Bishay

I wrote the following script to respond to the 2007 daylight saving problem for SCO UNIX. This will automate the whole process in 5.0.6 and 5.0.7 for all zones. It may need some clean up but here it is anyway.



tail -2 /etc/TIMEZONE > /89
head -1 /89 > /90
cut -c4-10 < /90 > /91
read v2 < /91

uname -a | cut -f4 -d" "> 895
read v1< 895
if test $v1 = 5.0.6
then
head -n15 /etc/TIMEZONE > /RBTIMEZONE
echo "#" Modified By Raouf Bishay 03/01/2007 to correct Time Zone \
>> /RBTIMEZONE
echo TZ="$v2,M3.2.0/2,M11.1.0/2" >>/RBTIMEZONE
echo export TZ >> /RBTIMEZONE
cp /etc/TIMEZONE /etc/TIMEZONE.org
cp /RBTIMEZONE /etc/TIMEZONE
rm /89 /90 /91
reboot
fi
if test $v1 = 5.0.7
then
head -n15 /etc/TIMEZONE > /RBTIMEZONE
echo "#" Modified By Raouf Bishay 03/01/2007 to correct Time Zone \
>> /RBTIMEZONE
read v2 < /91
echo TZ="'$v2,M3.2.0/2,M11.1.0/2'" >> /RBTIMEZONE
echo export TZ >> /RBTIMEZONE
cp /etc/TIMEZONE /etc/TIMEZONE.org
cp /RBTIMEZONE /etc/TIMEZONE
rm /89 /90 /91
reboot
fi
exit




Raouf Bishay


Hate these ads?



Comments


Tue Mar 6 18:27:34 2007: Subject:   TonyLawrence
As noted elsewhere, SCO has patches for this also..



Add your comments

ad

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


M3IP inc.

Views for this page
Today This Week This Month This Year  Overall
1937621 7,886

/OSR5/sco_dst_script.html copyright March 2007 Raouf Bishay All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - OSR5




Unix/Linux Consultants

Your ad here - $48.00 yearly!

http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.



Twitter
  • Nov 20 15:45
    Ayup, logged out of Gmail, came back in and "Themes" was in "Settings.. I like the "default" but "Minimalist" tempts me also.
  • Nov 20 15:42
    My google account doesn't have a "Themes" option yet but it did *change* its theme suddenly.







Coming Attractions

My Favorites

Change Congress


Related Posts