can't get shell script to execute even though I"ve changed the permissions

Asked by Elizabeth Fyke on 2012-04-29

I'm trying to get a shell script to execute, but it's displaying the message command not found. the permission has been changed to execute, and the the "#!/bin/sh" command is the first line of the script. HELP!

Question information

English Edit question
Ubuntu gnome-terminal Edit question
No assignee Edit question
Last query:
Last reply:
Ubfan (ubfan1) said : #1

Some things to check:
Check that your PATH environment variable contains the dot "." for current directory.
Try running the command with an explicit path "./script
Check that the partition with the shell script has not been mounted "noexe". You can copy your shell script to /tmp to see if it works. the /etc/fstab contains the partition attributes.

codemaniac (arijit.dutta) said : #2

While rinning the script you need to provde the absolute or relative path to the script .
or simply
sh script_name

Can you help with this problem?

Provide an answer of your own, or ask Elizabeth Fyke for more information if necessary.

To post a message you must log in.