'Why is "command not found" displaying for tshark commands?
Whenever I execute a bash script with a tshark command via command prompt, it will not work, displaying "command not found".
I have added a path to the PATH environment variable and tshark works in command prompt itself, however should a tshark command be executed via a bash script that is when the issue arises.
For instance,
tshark -r <filename here> -e ip.src -e eth.src -e ip.dst -e eth.dst -e ip.ttl -T fields -E separator="," > new.csv
works as intended when inputted directly into command prompt, however does not work when in a .sh script that is executed via command prompt.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
