[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't get scripts to work

Cameron Matheson said:
> Then I type "chmod u+x removeCiv.sh" to add execute permission to myself,
> but when i type "removeCiv.sh" at the prompt i get the error "bash:
> removeCiv.sh: command not found"



or move the script to an 'executables' directory, such as /usr/local/bin.

By default, the current directory (.) is not on your path.  You can add it,
but it opens up some security holes.  (I can put a program named "cd" in a
random directory and the next time you go there, it gets executed when you
try to leave the directory...)

Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+

Reply to: