Setting the date in ULTRIX

This post has already been read 4556 times!

Ultrix 4.5 has a Y2k problem- the date command cannot set any date with 00 as the year.

However, ULTRIX itself has no problem using dates past 2000, you just have to trick it to set the date by jumping to the last second of each year, letting it roll over the year then doing that again, 19 times. A shell script makes it easier.

 

!#/bin/sh
date 9912312459.59
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date
date 12312359.59
sleep 5
date

Save and run that and you can have the right time in ULTRIX.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.