I have MAVProxy on my RPi3 and I used the find command to learn the following

pi@raspberrypi:~ $ sudo find / -iname "" /usr/local/bin/ /usr/local/lib/python2.7/dist-packages/MAVProxy/

I want to make mods to so when I run the command it also executes another script that gathers sensor data. However, I do not know which file to modify.

Any input?