📎 AI Summary:
The thread discusses how to capture the "Destination Unreachable" error message from a ping command into a text file on Termux. The original poster, a Linux developer, notes that the error currently appears only in the terminal, not in the output file. A response suggests redirecting stdout to a file with `ping computername/IP > somefile.txt`, which the original poster thanks for. Overall, the conversation is helpful and solutions-focused.

Riyawilliams

New Member
Joined
Sep 18, 2018
Messages
2
Thread Author #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
Joined
Jul 4, 2015
Messages
8,995
Just redirect stdout to a file like so ping computername/IP > somefile.txt
 

Solution