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
In reply to Re: Unwinding an (unknown type) DBM
by tachyon
in thread Unwinding an (unknown type) DBM
by mendicantMatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |