[Irish, Jon D NCCIM wrote...]
-| I get a bunch of ": command not found" errors, but some commands do execute.
-| Any help will be greatly appreciated.

I think this is a fileformat issue.

I did the following under Vim:

        1/ create a new file foo.sh, with DOS fileformat command
        e.g. 
                vim -c "set fileformat=dos" foo.sh

        2/ write something simple in the file
        e.g. 
                ibraheem@ignoramus:$ cat foo.sh 
                #!/bin/sh
                echo "Boo!"

        3/ Trying to execute the file gives the following:
        e.g.
                ibraheem@ignoramus:$ sh foo.sh 
                : command not found
                Boo!
                ibraheem@ignoramus:$ 

        e.g.
                ibraheem@ignoramus:$ chmod +x foo.sh 
                ibraheem@ignoramus:$ ./foo.sh 
                bash: ./foo.sh: bad interpreter: No such file or directory
                ibraheem@ignoramus:$ 

So check the format of your file.

Kindest regards,

                --ibs.
-- 
Force has no place where there is need of skill.
                -- Herodotus

Reply via email to