Reputation: 1355
I have a Windows CMD that runs a python process. That process at the same time runs more processes using python multiprocessing, and threads.
All the prints output of that processes goes to the same CMD window. It's any way to hide all the processes output ?
I tried to do it using the next CMD command but it doesn't hide the output.
start "time_tester" C:\Windows\system32\cmd.exe /k C:\Python26\python.exe time_test.py > nul
Upvotes: 2
Views: 1891
Reputation: 1355
Adding /b to CMD command and redirect the output to nul (> nul) solves my problem. In this way, all the processes and child processes return the output to the same CMD and now we can redirect it to nul.
start /b "Name" C:\Windows\system32\cmd.exe /k C:\Python26\python.exe script.py > nul
Upvotes: 3