How to Run a bash file with on board buttons or GPIO pins on Jetson Tx1

Hi! I want to know is it possible to program on board buttons or GPIO pins of Jetson TX1 to run bash file? I am working on a self driving car and I want to start the program without using monitor, keyboard and mouse. I want to program these buttons to start a bash file that will in turn run all the other programs in a sequential order.

The easier solution may just be to write a loop into your program at the beginning that monitors the GPIO and then starts the process.

Here’s a C library for reading/writing the GPIO. It’s all just files, so I’m sure you could port it to your own language without too much issue.