I want crontab
to start a tcpdump
command, but tcpdump
seems to crash immediately after running the crontab
jobs. This is the command that I am trying to run:
@reboot /usr/sbin/tcpdump -l enpls0 -G 3600 -tttt -vvv 'port 5000' -w /home/edward/dump-%H.pcap
What am I doing wrong?
%
in the filename in order for the%H
to be processed as a timespec for the-G 3600
file rotation option. See for example Command with percent symbols not running in crontab. – steeldriver Jan 03 '23 at 14:10