As james said, the system() calls are hackery at best But... have you tried running the application with truss to get an idea where in the code things are gobbing up? /dale