copy the output file in /tmp