Pir sensor, blynk and debian server

I run blynk server on my debian pc. I want to get my esp8266 gpio state and execute some bash scrip on state change.
For example a motion pir sensor is such device.
Did some one knows how to do it?

Please note that motion pir sensor can interfere with ESP8266 WiFi moduleā€¦ Please google about this issue!