Scans a PennMUSH database for validity, and reports some information about the database.
% zcat outdb.Z | ./dbinfo.pl [-a] [-q] % gzcat outdb.gz | ./dbinfo.pl [-a] [-q] % bzcat outdb.bz2 | ./dbinfo.pl [-a] [-q] % ./dbinfo.pl [-a] [-q] --panic < PANIC.db % ./dbinfo.pl [-a] [-q] [--panic] filename
-a: Display extra information about attributes. -q: Only report corrupt databases and warnings. --panic: Treat the database as a panic dump even if it doesn't look like one.
Scans a PennMUSH database, and reports some information about the db. If the file appears corrupt (A string where a number is expected, etc.) it will stop, reporting what is bad in which object. If a database file passes this script, it can almost certainly be read by Penn itself. The script does no internal consistency checks like the mush's dbcks, though.
If you give a filename on the command line, compressed databases are detected and uncompressed automatically for scanning based on file extension.