The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-11-2006
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
Question problem with directory

hi gurus,
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
Reply With Quote
Forum Sponsor
  #2  
Old 12-11-2006
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
You have include your directory in PATH variable to execute the shell scripts

Code:
PATH=$PATH":."
Reply With Quote
  #3  
Old 12-12-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
Or
Code:
$ export PATH=/proj:$PATH
$ ./dboper.prg
Make sure dboper.prg has execute permissions.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0