Use fort/execlp instead of system.