I have executed the following command to run tcpdump:
# tcpdump -r pcap.pcap -z ./bash.sh -C 1
My goal is to run the commands inside the bash.sh file when 1M of the file is read. But this is not happening. The bash.sh file contains a command like this:
#!/bin/bash
echo "test" >> /tmp/test.txt
The bash.sh file has the executable permission. I would appreciate it if you could help me with this issue.