/[cricket]/getload
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /getload

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Fri Jun 28 18:23:35 2002 UTC (21 years, 9 months ago) by dpavlin
Branch: MAIN
uptime data

1 #!/bin/sh
2 if [ -z "$2" ] ; then
3 ruptime | grep $1 |\
4 awk '{print $7; print $8; print $9; print $4, $5; print $3, $2; print $1}' |\
5 sed 's/,//'
6 else
7 shift
8 $* |\
9 awk '{print $10; print $11; print $12; print $6, $7}' |\
10 sed 's/,//'
11 fi
12

  ViewVC Help
Powered by ViewVC 1.1.26