Is it really necessary to use a temporary file and specify `stdout=` ?