Use readProcess instead of callProcess.