in reply to Unwinding an (unknown type) DBM
You may be able to get some joy simply using the strings(1) command, for example in my sendmail conf dir the access text file looks like:
[root@mail]# cat access # Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY [snip]
And using strings(1) on the access.db dbm file ( file(1) *may* tell you the type BTW) gets me back:
[root@mail]# file access.db access.db: Berkeley DB (Hash, version 7, native byte-order) [root@mail]# strings access.db RELAY localhost.localdomain RELAY 127.0.0.1 RELAY localhost [snip] [root@mail]#
You may just luck out and find the data dumps out in a format you can parse back into shape with a few lines of perl. If not good luck.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unwinding an (unknown type) DBM
by mendicantMatt (Initiate) on Jul 06, 2004 at 03:08 UTC | |
by tachyon (Chancellor) on Jul 06, 2004 at 03:46 UTC | |
by Dr. Mu (Hermit) on Jul 06, 2004 at 03:34 UTC | |
by samtregar (Abbot) on Jul 06, 2004 at 17:49 UTC |