You might need to catch stderr output. See redirect stderr