Want to process the error message from issuing commands. For example,
connect: Network is unreachable
My question is how to get "connect: Network is unreachable" out.
I tried to use the similar idea like
ls > test.log
I can see a lot of files/directories with "cat test.log", but it did not work for
ping 10.10 >test.log
If I see it, test.log is an empty file.
Which commands can catch the error message or pipe somewhere???