-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Want an option to exit after specified time #338
Comments
It is possible to have one cron job to start tcpdump and write a pidfile and another cron job to stop tcpdump. |
Right, but I felt the new option is more useful than |
I agree that an option to exit after some period of time, or after writing X many save files, and it would also be nice to have an option to roll the save file after X minutes rather than on Z bytes. Here is my script to start/stop tcpdump, that I use in production:
|
Let's have this issue assigned to @mcr then. |
This seems like a fairly trivial feature to add, master...jaunix:stop-after-time
|
You want to do it with a call to |
The alternative approach I found is to use
|
I want an option to let tcpdump exit after a specified time passed (seconds, minutes, hours).
The reason is because I want to start tcpdump only during a specific time like 10:00 - 13:00. I often use crontab to start tcpdump on a specific time (like 10:00) with
-c
option to let tcpdump automatically die, but I can not assure it will not die until a specific time (like 13:00 here) and will die after the specific time.Especially, if the captured server is service-out, it will not receive packets any more, then the tcpdump lives forever. I want to avoid such situations, too
The text was updated successfully, but these errors were encountered: