Not much here yet -- hopefully it will grow with time.
These are just silly scripts which may or may not be useful as illustration of Pike coding, but not much use for anything else. If and when I start to believe this has changed, I'll be sure to mention it right here ;-)
Pike 7.2 is required to run these scripts. You are of course free to try to tweak them for older versions if you wish, it shouldn't be hard. Some may even work without any tweaking (not tested). Pike 7.3 should be OK too, but currently can be had only from RIS CVS.
Update: Pike 7.4 has now been released for a while, and there's a new official home for the Pike language. I will be updating this stuff for Pike 7.4 shortly. Currently all the scripts work with Pike 7.4 anyway, with barely a few compile warnings between all of them, but do not demonstrate the newer features.
All this stuff is in the public domain unless boldly stated otherwise in the individual descriptions. No warranty, etc.
passwd records on your Unix box (by calling
getpwent()) and computes statistics of your users' first names.
A legit first name is defined as a leading piece of the gecos field
(before the first space) that begins with a capital letter ([A-Z]).
Otherwise, no serious attempt is made to filter out system accounts ;-)
CommonLog module. Does nothing too smart other than
outputting a crude table of the frequencies of HTTP reply codes from
your access logfile, which must be in the "common log" format (as
used by default by Apache, Roxen, etc.).
Mbox_iterator class that is designed for
reuse in more sophisticated settings (though it's not really
perfect yet).Parser module.
cal(1) command, and an attempt to
utilize the strong type-checking implemented in newer versions of Pike
(works with 7.2, but it's quite a chore to suppress all type-related
warnings from the 7.4 compiler).Calendar
module, which takes a while to load and thus does not perform very well
for a quick one-shot command. Therefore, it's quite simple-minded: no
support for B.C. years, locale, or the Julian/Gregorian transition.
steps is a workaround for a
C-stack overflow due to excessive recursion depth. Works For Me (TM), but YMMV.Accessed: by 1214 since February 2007.
Robert J. BudzynskiLast modified: 2007-01-30