I'm just a beginner with arduino. I want to ask, if it is possible for arduino to run a .sh script/file. Why I need it - I want to make something like security with arduino - if a door opens, arduino would run this script "gnome-screensaver-command --activate" and the screensaver activates.
First be aware that an Arduino is no PC, not in memory size, not in processor speed and other capabilities.
If you want to run scripts you need to make an interpreter for the commandset you want to support and although that is not impossible on an Arduino it is not easy.
In essence an interpreter reads a string from its inputstream, disect this in command and parameters and executes the command. And then start over again. If you want to add conditional statements like IF or WHILE it becomes more complex still.