I'm trying to execute .sh file in rails index action.
I try exec"sh app/controllers/file.sh"
it's execute it in terminal then stop the server! I don't know why.
And I try output = system"sh app/controllers/file.sh"
it's return true in the browser not what is in the .sh file
Thanks in advance :)