Linux Tutorial, Linux, AWS, Tcpdump.
Wait for the specified duration /usr/bin/sleep $duration # Stop tcpdump #/usr/bin/pkill -f tcpdump /usr/bin/timeout $duration tcpdump #/usr/bin/sleep $duration cd /apps/tcpdump # Move the dump file to S3 bucket /usr/local/bin/aws s3 cp $dump_file s3://location/ # Clean up the dump file /usr/bin/rm