Using os.system('ping 127.0.0.1 -t >> new.txt')
. I am able to get the ping result in new.txt
document. How to get the ping result in command window and text file at the same time in case of stream output like this...?
Asked
Active
Viewed 129 times
0

Naresh G
- 15
- 7
-
1Possible duplicate of [How to redirect output to a file and stdout](https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout) – Maurice Meyer Oct 23 '17 at 10:46
-
@MauriceMeyer:I am looking for windows Maurice.. – Naresh G Oct 23 '17 at 11:02