T
T
The-TS2021-08-08 20:30:31
Python
The-TS, 2021-08-08 20:30:31

How to intercept STDOUT?

Hey!

How can you call a system command, for example, ping google.comand intercept stdout, that is, so that the text does not get into the console?
PS: And so that it would be possible to process it in Python

Thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-08-08
@Pyhon3x

https://docs.python.org/3/library/subprocess.html#...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question