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

Annotation of /trunk/tools/dump_tdb.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 232 - (hide annotations)
Fri Mar 5 23:18:30 2004 UTC (20 years ago) by dpavlin
File MIME type: text/plain
File size: 325 byte(s)
dump TDB file (e.g. lookup)

1 dpavlin 232 #!/usr/bin/perl -w
2    
3     use strict;
4     use TDB_File;
5     use Fcntl; # for O_RDWR
6    
7     my $tdb_file=shift @ARGV;
8     if (! $tdb_file) {
9     print "usage: $0 [tdb file]\n";
10     exit 1;
11     }
12    
13     my %tdb_file;
14     tie %tdb_file, 'TDB_File', $tdb_file, TDB_DEFAULT, O_RDWR, 0644;
15     foreach (sort keys %tdb_file) {
16     print "$_\t",$tdb_file{$_},"\n";
17     }
18     untie %tdb_file;

Properties

Name Value
cvs2svn:cvs-rev 1.1
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26