Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

y2k

47 views
Skip to first unread message

frasc

unread,
Jan 14, 2012, 4:25:04 PM1/14/12
to
Hi,

Are there any patches to make coherent 4.10 y2k aware ? I'd love to be
able to leave the 70s when I create or modify a file ;-)

Thanks

--Frederic

John McCue

unread,
Jan 14, 2012, 6:08:45 PM1/14/12
to
frasc <fr.f...@gmail.com> wrote:
> Hi,
>
> Are there any patches to make coherent 4.10 y2k aware ? I'd love to be
> able to leave the 70s when I create or modify a file ;-)
>

I created this based upon posts and reading Coh manuals
years ago.

http://home.comcast.net/~j_mccue/util/set_date.c

Forgot exactly how I used it since the PC I ran coherent
on failed a few years ago :(. If I remember correctly
on Coh 386 I added it to /etc/rc to prompt for a date.
(Or maybe I just executed after boot).

> Thanks
>
> --Frederic

HTH
John

Andrzej Popielewicz

unread,
Jan 14, 2012, 6:27:16 PM1/14/12
to
frasc pisze:
The programs supplied on rescue floppy do not solve the problem, but one
of them allows to set the date as far as I remember. These programs were
prepared by Egon.

But it appears that the solution was already available from MWC in 1993
or 1994 .
I will post the program I am using. I will add it to my university page.
I will inform in separate message , that the program is available.
I do not know the solution of John, try it out.


Notice You are the first who mentions this problem in last 10 years.

Andrzej




Andrzej

Andrzej Popielewicz

unread,
Jan 14, 2012, 7:28:18 PM1/14/12
to
Andrzej Popielewicz pisze:
> frasc pisze:
>> Hi,
>>
>> Are there any patches to make coherent 4.10 y2k aware ? I'd love to be
>> able to leave the 70s when I create or modify a file ;-)


OK
Two programs, date and ATclock are on

http://main4.amu.edu.pl/~apopiele/embed.html

You will find just below crescue image on this page.

Probably date is only neccessary.
Copy it to the /bin directory.And reboot.
They are used in rc script
Of course original script do not have to be changed.

Andrzej

Andrzej Popielewicz

unread,
Jan 15, 2012, 5:21:35 AM1/15/12
to
frasc pisze:
Perhaps as a comment.
As You see from rc script thd pair date/ATclock is required.

I do not know if pair ndate/nclock prepared by Egon, and supplied on
rescue floppy plays the same role. I have once tested ndate and it
allowed to set the date after boot.
But it did not use it as a pair ndate/nclock in rc script. Perhaps at
THAT time I did not catch this idea.

After finding the functioning pair date/ATclock it was done for me,
timing problems are usually boring.

John's program set_date probably has to play the role of date , but it
is not quite clear how it cooperates with ATclock.

Andrzej

John McCue

unread,
Jan 15, 2012, 9:18:59 AM1/15/12
to
Andrzej Popielewicz <va...@icpnet.pl> wrote:
<snip>
> John's program set_date probably has to play the role of date , but it
> is not quite clear how it cooperates with ATclock.
>
> Andrzej


Yes, pretty much replaced date, but not a full replacement.
It's only purpose was to set the software clock. My net
access was spotty at the time so was unaware of the updated
progs posted by Andrzej.

Either you would type in the date as YYYYMMDDhhmm[ss]
when prompted or it would accept and argument formatted
as 'YYMMDDhhmm.ss' which I think is what was returned by
one of the coherent date set routines. Note, there is no
timezone logic, so I use to add/subtract the # of hours
to adjust from GMT as a command line argument or would
adjust the time as I typed it in.

You may need to compile with '-f', I really do no remember
if it is needed. I also consider it public domain :)

Regards
John

Hans Bezemer

unread,
Jan 15, 2012, 11:33:54 AM1/15/12
to
Andrzej Popielewicz wrote:

> Probably date is only neccessary.
> Copy it to the /bin directory.And reboot.
> They are used in rc script
> Of course original script do not have to be changed.
I used only 'date' and although I didn't reset (please, not an empty cache
again!) it worked. I was surprised it didn't ask for a four digit year, but
it was fine.

Hans Bezemer

frasc

unread,
Jan 15, 2012, 4:42:06 PM1/15/12
to
Thanks all!

I've got a lots of things to try out now :-)

--Frederic
0 new messages