0

So, I have a .sh file on my desktop, and I want to run it in the terminal. The first line is #! /bin/bash , then a blank line, then my command. I choose Run in terminal when I double click it, and it gives me:

There was an error creating the child process for this terminal Failed to execute child process "/home/(my name)/Desktop/run.sh" (No such file or directory)

Thunder bolts and lightning, very very frightening! So, it is there, why isn't terminal opening it?

  • You have made it executable? It would be helpful to have more of the script, especially the command - I think that is the problem... – Tim Aug 11 '14 at 5:59
0

Your first line is wrong. You have a space between #! and /bin/bash. Remove that space and enjoy your script.

protected by Thomas Ward Oct 14 at 15:01

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.