When you type a command in Unix with no path specification, the shell looks in the directories contained in your PATH environment variable to find it, and _only_ in those directories. If you come from the DOS world, this can be confusing because DOS looks in the PATH and by default it also looks in the current directory. Unix shells do not look in the current directory by default, you have to specifically add "." to your path ("." represents the current directory).
So your problem is that "." is not in your PATH, so when you type "scriptname.pl" the shell does not find it. You can either type the path name explicitly:
or add "." to the end of your path:./scriptname.pl
If you add "." to your path, make sure you add it at the end and not at the beginning. Adding it at the beginning can be a source for (at best) pranks and (at worst) security problems.PATH=${PATH}:. export PATH scriptname.pl
In reply to Re: extreme newbie question
by ZZamboni
in thread extreme newbie question
by jkellington
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |