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 .