How can I send some specific number of, say 1000, messages (echo) per second to a file by a shell script?
i.e. I want to echo 1000 such messages (“hi”) per sec to a (tmp) file.
echo “hi” >> tmp
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best you can do is this:
The time to actually execute the commands in the inner while loop is not taken into account, so this will write slightly less messages per second.