Quantcast
Viewing latest article 27
Browse Latest Browse All 45

Can I redirect all output to /dev/null from within python?

I'm writing a Python script that'll fork a child process. The parent process should be able to write stuff like Started child at xxxxx, but the child process output should be redirected to /dev/null. How can I do that from within python?


Viewing latest article 27
Browse Latest Browse All 45

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>