1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
**Please read INSTALL**
**PLEASE EDIT UD.C**
Uptime Daemon
Copyright (C) 1998 Matthew Trent (root@piguy.dyn.ml.org)
Changes by Johnny Teveen <j.tevessen@line.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Ever wanted to brag about how stable your computer is to your (NT?)
friends, but couldnt remember your best uptime? Well, this is the program
for you :)
UD runs in the background constantly checking the current uptime against
your 3 best uptime records. If the current uptime surpasses a record, that
becomes the new record. Records are stored in /etc/uptime.record. Use the
-d option to parse that into readable format.
UD can also read in a template file and output a customized HTML file, or
it can render a default HTML format. An example template is included in
the distrobution.
--Templates:
UD now supports user-customizable template files to change the look of the
HTML output. To create a template, design an HTML file with the desired
format and insert the codes listed in TEMPLATE-CODES where appropriate.
You may either copy your new template to /etc/template.ud, use the command
line option -if, or change the location of the file in ud.c. Ready-made
template(s) come in the distrobution and are in template/.
Usage: ./ud [options]
-d display current uptime records
-s toggle usage of HTML stats file (default: use)
-o use original HTML output format
-w write HTML stats and exit
-of <file> use <file> for HTML output (default: /home/httpd/ud.html)
-if <file> use <file> for HTML template (default: /etc/template.html)
-in <value> use <value> seconds for the stats update interval (default:
120)
--version output version information and exit
--help get help (duh)
Please, edit the user configurable section in ud.c =)
<shameless plug>
Well, since mbm gave me a shameless plug in his uber-cool program,
root-tail, i figured i should give him one too, so, here it is. Get
root-tail, it prints a file to your root window and will get you chicks.
http://141.219.82.200/~mbm1/root-tail
</shameless plug>
Changes since 0.4.1:
- Bugfixes
- Documented the -w switch
- Changed the format of -d output
- Added template docs and example(s)
Changes since 0.3.0:
- Cool template file support thanks to Tristan
- New command line options thanks to Tristan
- Little stuff as usual
Changes since 0.2.3:
- Many, MANY internal things improved thanks to Johnny
- ud.pid stores correct pid
- New format for html output
- -s option added
- Silent (exept for pid) on startup
- More little stuff
|