in reply to Re: kill process when files created...
in thread kill process when files created...

He wants 10 files with size 1M, not 10 packages. The parameter -C has a unit of 1,000,000 bytes.

tcpdump seems to have no principal problem with running in the background, just checked it on the command line. It may need some io redirection if called from a script. But it should have at least a '&' at the end to go into the background.

  • Comment on Re^2: kill process when files created...

Replies are listed 'Best First'.
Re^3: kill process when files created...
by pc88mxer (Vicar) on Jul 03, 2008 at 05:25 UTC
    Good point about the -C option.

    The way the OP is invoking tcpdump it will not get run in the background. Thus the while will not get executed until tcpdump finishes.