This page is for Windows users who wish to use libwab but are unfamiliar with the command-line.
C:\wabwork>.C:\>wabworkcmd.exe and press enter.Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administrator>
C:\wabworkC:\Documents and Settings\Administrator>c: C:\Documents and Settings\Administrator>cd \wabwork C:\wabwork>
dir to make sure everything is there:
C:\wabwork>dir
Volume in drive C has no label.
Volume Serial Number is F8C2-A937
Directory of C:\wabwork
08/05/2006 12:01p <DIR> .
08/05/2006 12:01p <DIR> ..
05/27/2003 10:16p 244,179 example.wab
08/02/2006 04:25p 935,399 libiconv-2.dll
08/02/2006 04:26p 111,180 wabread.exe
3 File(s) 1,290,758 bytes
2 Dir(s) 20,292,921,344 bytes free
C:\wabwork>
You should have
ren
wabread-060803.exe wabread.exe
C:\wabwork>wabread
Use: wabread [options] <filename.wab>
Options:
-d # set debugging (logical or 1,2,3,4...)
-h heuristic record dump: attempt to recover data
from a broken .wab file and/or deleted records.
-u enable unicode (a bit unstable under win32)
C:\wabwork>
C:\wabwork>wabread example.wab >example.ldifThe file "example.ldif" should now contain the records from example.wab in ldif form.
C:\wabwork>wabread -h example.wab >example-heuristic.ldifThe above should result in the file "example-heuristic.ldif" being generated. This file will contain everything that wabread finds in your .wab file that seems like it is a record.
GUI (graphical user interface) users often believe that the command-line to archaic. The truth is that the command-line is, in many ways, far more powerful than a GUI.
What if you wanted to decode a wab file every day at a certain time? How could this be done with a GUI? With the wabread executable one could schedule the command to be run automatically. But that's just the beginning.
How about if there were several hundred or even thousands of .wab files to decode? Using bash one could do the following:
% for i in *.wab; do wabread $i >$i.ldif;done
One could even pipe the output from that command to an ldap server running on a different machine.
% (for i in *.wab; do wabread $i;done)| ssh user@ldap-server ldap_read_ldif_command -