Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* 20 year problem with Alpha
@ 1998-07-23  4:00 Torsten Bauer
  1998-07-24  4:00 ` Craig Burley
  1998-07-24  4:00 ` John Walstra
  0 siblings, 2 replies; 5+ messages in thread
From: Torsten Bauer @ 1998-07-23  4:00 UTC (permalink / raw)


Hello,

I have some problems with some directories and files after I have  
installed RH 5.1. Most of my directories and files has the year 2018.

The clock and the date-command works fine, after I have changed 2 lines in  
/etc/sysconfig clock


ARC=true
CLOCKMODE=ARC

But what should I do with the other directories and files? So I get  
sometimes a lot of failures, like clock skew detected, ...

I tried to set the clock of my alpha to the year 1978 for the installation  
but it begins at 1980 :-) At the installation I chosed  ARC as my clock.

I have an LX164 with 128 MB Ram, 533Mhz 21164 Processor and a WIN NT ARC  
console (I`m so sorry about it... but I need NT for some of my work  
:-((((()

Any idea? My idea was to write a little perl-script to change the year,  
but I hope there is a better idea.

Thanks
Torsten
-- 
       Torsten Bauer                 E-Mail:  t.bauer@nowhere.handshake.de
       PGP-Key per EB                IRC   :  Toerst
                                  * * * * *
     "Wer Butter vom Amt will, muss Milch auf den Dienstweg schicken."
                          Moderne deutsche Volksweisheit



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 20 year problem with Alpha
  1998-07-23  4:00 20 year problem with Alpha Torsten Bauer
  1998-07-24  4:00 ` Craig Burley
@ 1998-07-24  4:00 ` John Walstra
  1 sibling, 0 replies; 5+ messages in thread
From: John Walstra @ 1998-07-24  4:00 UTC (permalink / raw)


Torsten Bauer wrote:
> 
> Hello,
> 
> I have some problems with some directories and files after I have
> installed RH 5.1. Most of my directories and files has the year 2018.
> 
> The clock and the date-command works fine, after I have changed 2 lines in
> /etc/sysconfig clock
> 
> ARC=true
> CLOCKMODE=ARC
> 
> But what should I do with the other directories and files? So I get
> sometimes a lot of failures, like clock skew detected, ...
> 
> I tried to set the clock of my alpha to the year 1978 for the installation
> but it begins at 1980 :-) At the installation I chosed  ARC as my clock.
> 
> I have an LX164 with 128 MB Ram, 533Mhz 21164 Processor and a WIN NT ARC
> console (I`m so sorry about it... but I need NT for some of my work
> :-((((()
> 
> Any idea? My idea was to write a little perl-script to change the year,
> but I hope there is a better idea.
> 

I had this problem up to a few days ago.  I had RedHat 5.0 though, but
hopefully I can give you some place to look.  I do have RedHat 5.1, but
have not done an offical upgrade yet.  I got rid of the 20 year problem
by updating "milo" and "clock" from RH5 to RH5.1.  The program "clock"
is located in /sbin.  The program "milo" is normally locate on your
first partition on your hard drive (i.e. /dev/sda1 ).  This partition's
file system is "msdos" so you should be able to mount it and copy the
new "milo" program in there. There should be a rpm for "clock" on RH5.1
and "milo" is in the "milo" directory off of / (i think).

Hope something I said helps,
John

......................................................................
John Walstra                               Motorola, Inc. CIG
mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
phone :(847) 632-3071                      Arlington Heights, IL 60004
fax   :(847) 632-4164



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 20 year problem with Alpha
  1998-07-23  4:00 20 year problem with Alpha Torsten Bauer
@ 1998-07-24  4:00 ` Craig Burley
  1998-07-24  4:00   ` Robert Harley
  1998-07-24  4:00 ` John Walstra
  1 sibling, 1 reply; 5+ messages in thread
From: Craig Burley @ 1998-07-24  4:00 UTC (permalink / raw)


t.bauer@nowhere.handshake.de (Torsten Bauer) writes:

> But what should I do with the other directories and files? So I get  
> sometimes a lot of failures, like clock skew detected, ...

A partial solution I've used is this:

  log in as `root'
  do this in bash:
    touch /foo; find / -newer /foo \! -type l -exec touch {} \;
    rm /foo

However, this doesn't fix symbolic links, which are purposely
excluded because, if included, touch actually `touches' the
non-symlinks to which they ultimately point, not the links
themselves.  (And you don't necessarily want to do that, though
I did and it seems to have led to no problems.  That is, while
a link might be 2018-dated, the file or directory to which it
points might not be, in which case touching it is not necessary,
and perhaps not appropriate.)

I haven't bothered to find a solution to the problem of fixing
the dates on symbolic links.  It surprises me that GNU `touch'
doesn't offer a --no-dereference option for this, but perhaps
there's no way to do it in UNIX anyway, other than to save the
symbolic-link string, delete the link, then reinstate it -- which
would set the date only to the current date, while touch supports
so much more.  (For that matter, I'd like a --verbose option
as well.)

(Note that if you want more cleverness, you can provide options
to `touch' to set the date/times to something other than current --
in fact, this is arguably better in this case, since 2018 dates
probably correspond to dates *before* when you fixed your
configuration.  Read the docs for more details.)

Disclaimer: If any of the above advice results in your toasting
your system, I'm sorry, but that's about all.  :)
-- 

"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson    burley@gnu.org



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 20 year problem with Alpha
  1998-07-24  4:00 ` Craig Burley
@ 1998-07-24  4:00   ` Robert Harley
  1998-07-25  4:00     ` Craig Burley
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Harley @ 1998-07-24  4:00 UTC (permalink / raw)



Craig Burley <burley@tweedledumb.cygnus.com> writes:
> I haven't bothered to find a solution to the problem of fixing
> the dates on symbolic links.  It surprises me that GNU `touch'
> doesn't offer a --no-dereference option for this, but perhaps
> there's no way to do it in UNIX anyway [...]

You can read the access/modify/change date and time using stat() or
lstat() depending on whether you want to follow links or not.  You can
write the access/modify date and time using utime() but you can't set
the change time to anything other than "now" nor choose not to follow links.

As far as I know.

:(

I wrote a wee program called 'chyear' for changing access or modify years.
You can do summat like this (in tcsh):

  foreach file ( `find . -mtime -0 -print` )
  chyear -m $file 2018 1998
  end

which changes anything with a modify time in 2018 to 1998 (if you have
permission to change it).

Anyone want?

Rob.
PS: Ah, I love the smell of nap^H^H^HUnix in the morning!



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 20 year problem with Alpha
  1998-07-24  4:00   ` Robert Harley
@ 1998-07-25  4:00     ` Craig Burley
  0 siblings, 0 replies; 5+ messages in thread
From: Craig Burley @ 1998-07-25  4:00 UTC (permalink / raw)


Robert Harley <harley@corton.inria.fr> writes:

> Craig Burley <burley@tweedledumb.cygnus.com> writes:
> > I haven't bothered to find a solution to the problem of fixing
> > the dates on symbolic links.  It surprises me that GNU `touch'
> > doesn't offer a --no-dereference option for this, but perhaps
> > there's no way to do it in UNIX anyway [...]
> 
> You can read the access/modify/change date and time using stat() or
> lstat() depending on whether you want to follow links or not.  You can
> write the access/modify date and time using utime() but you can't set
> the change time to anything other than "now" nor choose not to follow links.

Just a guess, but do you mean "create" where you say "change"?

And, are you saying that utime() cannot be used without following
links, or that just in the change-creation-time case?

> As far as I know.

Someday I must learn UNIX.  I hear many people use it.  Apparently so
do I.  Sigh.  ;-)
-- 

"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson    burley@gnu.org



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-07-25  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-23  4:00 20 year problem with Alpha Torsten Bauer
1998-07-24  4:00 ` Craig Burley
1998-07-24  4:00   ` Robert Harley
1998-07-25  4:00     ` Craig Burley
1998-07-24  4:00 ` John Walstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox