1

I tried the following in debian:

mysqld restart > mysqld.txt

But I can see nothing in mysqld.txt, while I can still see the output of mysqld restart on screen. I wonder why.

  • Why don't you accept the answer to this question, or the other questions you have posted? – Geoff Feb 23 '13 at 15:27
3

> redirects stdout. You need to use 2> to redirect stderr, or &> for both.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.