mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
290 B
Bash
11 lines
290 B
Bash
#!/bin/bash
|
|
|
|
# Check that tshark is installed and return a nice message.
|
|
if ! command -v tshark; then
|
|
echo "pcap support requires 'tshark' v3+ to be installed" > /dev/stderr
|
|
exit 1
|
|
fi
|
|
|
|
# Use tshark to convert the pcap file into a JSON-lines log file
|
|
exec tshark -T ek -P -V -t ad -r $2
|