[comp.sys.sgi] 2 bugs: ls -lt, network.local

root@fuzzy (Dr. Michael M. Cohen) (06/11/91)

ls -lt seems to be confused about what's latest!

<<d 12>>ls -lt
total 66
-rwxr--r--   1 root     sys          286 Apr 12  1991 lpd*
-rwxr--r--   1 root     sys          433 Feb 21  1991 perf*
-rwxr--r--   1 root     sys          560 Feb 21  1991 acct*
-rwxr--r--   1 root     sys          490 Feb 21  1991 configmsg*
-rwxr--r--   1 root     sys         1229 Feb 21  1991 cron*
-rwxr--r--   1 root     sys          398 Feb 21  1991 lp*
-rwxr--r--   1 root     sys         2539 Feb 21  1991 mail*
-rwxr--r--   1 root     sys        18047 Feb 21  1991 network*
-rwxr--r--   1 root     sys         1125 Feb 21  1991 RMTMPFILES*
-rwxr--r--   1 root     sys          166 Feb 21  1991 savecore*
-rwxr--r--   1 root     sys          684 Feb 21  1991 autoconfig*
-rwxr--r--   1 root     sys          819 Feb 21  1991 sysetup*
-rwxr--r--   1 root     sys          424 Feb 21  1991 uucp*
-rwxr--r--   1 root     sys         1903 Feb 21  1991 README*
-rwxr--r--   1 root     sys          279 Feb 21  1991 MOUNTFSYS*
-rwxr--r--   1 root     sys           45 Jun  6 22:11 network.local.x*
-rwxr--r--   1 root     sys           87 Jun  6 22:11 network.local*

-----------------------------------------------------------------
2nd bug is that network.local does not work correctly on boot
I get message:/usr/etc/route add default 128.114.133.251 1: file exists
(something pretty close to that anyhow), and remote cites are not known.
I can manually say "network.local" which will properly add the route.
network.local contains:
if test $1 = stop ; then
        exit;
fi
/usr/etc/route add default 128.114.133.251 1
-------------------------------------------------------------------
the proper links are put in rc0.d and rc2.d as outlined
in /etc/init.d/network

Can anyone explain why this fails?

TIA, MM Cohen

jeremy@perf2.asd.sgi.com (Jeremy Higdon) (06/11/91)

In article <16903@darkstar.ucsc.edu>, root@fuzzy (Dr. Michael M. Cohen) writes:
> ls -lt seems to be confused about what's latest!
> 
> <<d 12>>ls -lt
> total 66
> -rwxr--r--   1 root     sys          286 Apr 12  1991 lpd*
> -rwxr--r--   1 root     sys          433 Feb 21  1991 perf*
> -rwxr--r--   1 root     sys          560 Feb 21  1991 acct*
> -rwxr--r--   1 root     sys          490 Feb 21  1991 configmsg*
> -rwxr--r--   1 root     sys         1229 Feb 21  1991 cron*
> -rwxr--r--   1 root     sys          398 Feb 21  1991 lp*
> -rwxr--r--   1 root     sys         2539 Feb 21  1991 mail*
> -rwxr--r--   1 root     sys        18047 Feb 21  1991 network*
> -rwxr--r--   1 root     sys         1125 Feb 21  1991 RMTMPFILES*
> -rwxr--r--   1 root     sys          166 Feb 21  1991 savecore*
> -rwxr--r--   1 root     sys          684 Feb 21  1991 autoconfig*
> -rwxr--r--   1 root     sys          819 Feb 21  1991 sysetup*
> -rwxr--r--   1 root     sys          424 Feb 21  1991 uucp*
> -rwxr--r--   1 root     sys         1903 Feb 21  1991 README*
> -rwxr--r--   1 root     sys          279 Feb 21  1991 MOUNTFSYS*
> -rwxr--r--   1 root     sys           45 Jun  6 22:11 network.local.x*
> -rwxr--r--   1 root     sys           87 Jun  6 22:11 network.local*

My guess is that your system date is wrong.  Otherwise, ls would not
print the year for the other listed files.

olson@anchor.esd.sgi.com (Dave Olson) (06/11/91)

In <16903@darkstar.ucsc.edu> root@fuzzy (Dr. Michael M. Cohen) writes:
| ls -lt seems to be confused about what's latest!
| 
| <<d 12>>ls -lt
| total 66
| -rwxr--r--   1 root     sys          286 Apr 12  1991 lpd*
| -rwxr--r--   1 root     sys          433 Feb 21  1991 perf*
| -rwxr--r--   1 root     sys         1903 Feb 21  1991 README*
| -rwxr--r--   1 root     sys          279 Feb 21  1991 MOUNTFSYS*
| -rwxr--r--   1 root     sys           45 Jun  6 22:11 network.local.x*
| -rwxr--r--   1 root     sys           87 Jun  6 22:11 network.local*

The Jun 6 files are almost certainly dated in 1990, or earlier.
For the 1991 to be be printing on the others, I'd guess that your
system date has somehow been set to be in 1990, or even earlier.

I can't help on the other problem, perhaps one of the network folks
can shed some light.
--

	Dave Olson

Life would be so much easier if we could just look at the source code.

root@fuzzy (Dr. Michael M. Cohen) (06/11/91)

In article <109550@sgi.sgi.com> jeremy@perf2.asd.sgi.com (Jeremy Higdon) writes:
>In article <16903@darkstar.ucsc.edu>, root@fuzzy (Dr. Michael M. Cohen) writes:
>> ls -lt seems to be confused about what's latest!
>> 
>> <<d 12>>ls -lt
>> total 66
>> -rwxr--r--   1 root     sys          286 Apr 12  1991 lpd*
...
>> -rwxr--r--   1 root     sys           45 Jun  6 22:11 network.local.x*
>> -rwxr--r--   1 root     sys           87 Jun  6 22:11 network.local*
>
>My guess is that your system date is wrong.  Otherwise, ls would not
>print the year for the other listed files.

you're right
the clock was off
by a year!

MMC

filler
filler
filler
filler
filler
filler
filler