I need to execute a script saved on Edison memory when an event comes on in my firmware.
I know the locate and name of it ( /folder/script.sh ) but I just don't know how to execute it using the arduino IDE.
Can someone help me with it?
You can run Linux commands from the Arduino IDE using system calls. The syntax is the following: system("command");
So to execute a script you could use the following line in the Arduino sketch: system("sh /folder/script.sh");
Thanks for your help.
It works with just a little change, just when I wrote system("/folder/script.sh"); without the first sh .
Retrieving data ...