The Problem is, this works only if the tcpdump gets an Output.
Due to the given parameters of tcpdump it is possible that there is no output and so tcpdump is listing and listing..... Thats the reason why i need the possiblity to kill the process.
Then use a subshell where you can kill the tcpdump, but don't put your tcpdump in a subshell : a subshell can't return any value to its parent process.
Dependends on how you want to kill the process : by a user entry, after a certain delay...
you can put in your script BEFORE the call to tcpdump a part of code like
( read -p "press enter to stop the process" # for an user entry
sleep 5m # waits 5 minutes (can be seconds (default) , hours, days...)
killall tcpdump # or something with pkill (see man pkill)
) &