This message was posted on behalf of Intel Corporation
Thanks for your interest in the Intel Galileo platform.
I think that it is possible to do this by creating and running a program that is waiting for a digital input, maybe using a Galileo interrupt pin, and then execute your node program after the input change has been detected. You could run this program in the Linux terminal and also, it is possible to run it in the background, in order to do it you can add “&” to the command line, for example # node my_code.js &
Additionally, you can find useful information regarding the Galileo interrupts here: https://communities.intel.com/message/231257#231257.
Hope this information helps.