0

I am trying to measure MySQL QPS (Queries per Second) for trending analysis.

mysqladmin -P3104 -rvi1 ex 2>&1 | grep Questions

I can't get the above into a text file using the following:

mysqladmin -P3104 -rvi1 ex 2>&1 | grep Questions > out.txt

or mysqladmin -P3104 -rvi1 ex 2>&1 | grep Questions | tee out.txt

I think ex might be interfering with the stdout/stderr redirection. But I just need to capture the output into a file, I don't need to see screen output.

1 Answer 1

1

2>&1 instead of 2&>1:

mysqladmin -P3104 -rvi1 ex 2>&1 | grep Questions > out.txt
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.