![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Directory Creation problem | namishtiwari | Shell Programming and Scripting | 1 | 02-05-2008 05:04 AM |
| Directory inside directory problem | namishtiwari | Shell Programming and Scripting | 6 | 01-27-2008 01:07 AM |
| Problem Removing a Directory !!! | gauravsachan | UNIX Desktop for Dummies Questions & Answers | 1 | 03-14-2007 10:53 PM |
| problem with directory commands | tej.buch | Shell Programming and Scripting | 1 | 01-22-2006 11:22 PM |
| home directory problem | finster | SUN Solaris | 1 | 09-16-2003 12:47 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have created a directory called "Proj" in the root directory. I then created a file called "dboper.prg" in that directory. I have given file permissions and directory permissions . But when executing the file dboper.prg ($ dboper.prg) from being in the proj directory,i am getting the error "command not found". When i specify the complete path of the file then only its getting executed. (like $ /proj/dboper.prg). Why do i need to specify the complete path instead of just the file name to execute that file? any help pls cheers RRK |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
You have include your directory in PATH variable to execute the shell scripts
Code:
PATH=$PATH":." |
|
#3
|
||||
|
||||
|
Or
Code:
$ export PATH=/proj:$PATH $ ./dboper.prg |
||||
| Google The UNIX and Linux Forums |