I need to write shell script for reading kafka messages on a particular topic using "bin/kafka-console-consumer.sh --topic quickstart-events --from-beginning --bootstrap-server localhost:9092" only for certain amount of time, say 10 seconds. Using the option --timeout 10s is not helpful, because the process does not stop after 10s if messages are coming continuously on the particular topic. Please suggest how to do the same.