uptime 234 B

12345678
  1. #!/bin/rc
  2. clock=`{cat /dev/time}
  3. xx=`{{echo $clock(3) / $clock(4); echo '_/86400'}|hoc|sed 's/^\./0./g;s/\..*//g'}
  4. sec=$xx(1)
  5. days=$xx(2)
  6. cat /dev/sysname
  7. echo -n ' up '$days' days, '
  8. timezone='MDT -21600' date $sec |awk '{print $4}'