#!/bin/bashLIMIT=$((1024*1024*1024*10)) #10G BytesFILESIZE=0while [ $FILESIZE -lt $LIMIT ];dosleep 1FILESIZE=`stat -c%s 123.cap`done# do some killallkillall tcpdump