Ask Your Question

Revision history [back]

Does Clicking the "Stop Capturing Packets" Button return a value or modify a file?

I have a bash script that creates FIFO pipes, opens wireshark, and runs up to three ubertooth-btle commands based on the amount of Uberteeth plugged into my computer at runtime. Ubertooth is BLE USB packet sniffer.

When I'm done capturing packets in WS and I click the red square, is there something my bash script can poll for to know that I have clicked the button (system call, return value)? I would use to this info to kill the PIDs of each ubertooth-btle processes so I don't have to.

I don't want to stop packet capture after x seconds, or bytes/number of packets found...YET. If I have no other choice I will but that is plan B.

Is there a better way of achieving what I'm trying to do?