Answer the question
In order to leave comments, you need to log in
How to run tcpdump in the background?
Hello. It is required to record some packets of network traffic. In general, I see it like this:
If there is a running tcpdump process from the last iteration, terminate it.
Start a new tcpdump process and write the traffic to a file.
A number of questions arose: how to terminate a specific tcpdump process started yesterday?
How to run tcpdump in the background ?
Answer the question
In order to leave comments, you need to log in
why exactly tcpdump? If there is a task to sniff packages (one libpcap fig), daemonize, and write to a file, use this garbage: https://github.com/Cisco-Talos/Daemonlogger
A number of questions arose: how to terminate a specific tcpdump process started yesterday?
tcpdump <опции> >& /dev/null &
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question