How do i Print error message on this particular Ping Command?

#1
Hai,
When the internet drops it shows "Destination Unreachable" only in the terminal(termux android) not in the text file. I want the error message also in the text file.

Regards,
Riya.
Linux developer
 


Neemobeer

Windows Forum Team
Staff member
#2
Just redirect stdout to a file like so ping computername/IP > somefile.txt
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top