Rewrote command execution code on the program driver for external lookup   * replaced if statements for switch case   * Fixed child process wait   * Improved error handling
Rewrote command execution code on the program driver for external lookup
  * replaced if statements for switch case
  * Fixed child process wait
  * Improved error handling

MFM: 5 days
Bug-ID: none
Bug-Reported-By: Aaron Hurt <ahurt@anbcs.com>
                 Julien Valroff <julien@kirya.net>

Security: none

toddfries/dspam,toddfries/dspam,toddfries/dspam,toddfries/dspam,toddfries/dspam,toddfries/dspam,toddfries/dspam