On Thu, 22 Feb 2001, Jonathan Wilson wrote:

> At 05:33 PM 2/22/2001 -0500, you wrote:
> >I couldn't resist...
> >
> >/home/rmadison$ uptime
> >  5:23pm  up 155 days,  1:14,  27 users,  load average: 0.34, 0.38, 0.40
> >/home/rmadison$
> >Seriously though, I agree 100% with Gustav. I have administered some older
> >SunOS boxes that had been up so long, that they forgot how long they had
> >been up. When I did an uptime, the Number of days field was just blank.
>
> Why didn't you just check /proc/uptime?
>
> [root@garnet /root]# cat /proc/uptime
> 4346568.00 4104071.32
>
> That's UNIX time for those who don't know. (number of seconds since 00:00:00, Jan 1, 
>1970)
>
> [root@garnet /root]# uptime
>   7:57pm  up 50 days,  7:20, 32 users,  load average: 0.00, 0.00, 0.00


Because SunOS (4.x, aka Solaris 1.x) didn't have a /proc filesystem and
besides /proc/uptime is a linuxism.  Solaris 2.x (SunOS 5.x) supports the
/proc filesystem but does not have /proc/uptime.

-- John

--
John T. Douglass                        Phone: 208 533 7992
Argonne National Laboratory-West        Email: [EMAIL PROTECTED]




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to