Running Job and Paused Job Writing to the same File

Posted by Kyle Brandt on Server Fault See other posts from Server Fault or by Kyle Brandt
Published on 2010-03-17T11:48:36Z Indexed on 2010/03/17 11:51 UTC
Read the original article Hit count: 563

Filed under:
|
|

So I ran tcpdump twice overnight by accident, both outputting to the same file. However, I ran them as jobs and one of them has been paused the whole time. Anyone have a recommendations on how to keep the file? So far I have thought of:

  1. kill -9 the paused job
  2. Pause the running job, copy the file, and then stop both.

Two sounds like the safest option, anyone have a better idea other than not doing this in the first place ;-)

© Server Fault or respective owner

Related posts about job-control

Related posts about zsh