13

Possible Duplicate:
How do I run .sh files in Terminal?

I'm trying to install Craftbukkit on my Ubuntu 12.04 server. However, I'm having issues with step seven, which instructs me to run ./craftbukkit.sh.

If I run it as a normal user, then I get a permissions error. If I run it using sudo, then I get sudo: ./craftbukkit.sh: command not found.

What am I doing wrong?

2 Answers2

23

You need to chmod the file 1st before run.

chmod +x file.sh

Now your can run your .sh file as follows

./file.sh

Another way to run .sh file in Linux

sh file.sh

OR

bash file.sh
penreturns
  • 5,950
4

According to the wiki page of bukkit.

[...] type sh craftbukkit.sh to execute the script you wrote before. Your server will start and keep running until you stop it (or until it crashes).

pl1nk
  • 6,667