in reply to External command problem

Update: No need to respond to this. Although both jeffa and AgentM had good criticisms (which I did incorporate :) ), my real problem was a mis-named variable.