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

Riyawilliams

New Member
Joined
Sep 18, 2018
Messages
2
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
 

Just redirect stdout to a file like so ping computername/IP > somefile.txt
 

Solution
Back
Top