I am using the curl
command to measure date/time(or timestamp) also the latency of the request. Here the same command is executed, 1000 times to stress test the system and my code is as follows:
curl -s -v -i -I http://172.16.20.8:8000/files_to_curl/vid.mp4?[1-1000] | grep "Date:","%{http_code},%{time_namelookup},%{time_connect},%{time_appconnect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{time_total},%{size_download},%{speed_download}\n" >> test_time.txt
My problem is I can only save one information at a time, if Date is saved, latency can't and vise versa. I am new to shell commands so please advise me where I am doing wrong.