On Monday 09 July 2001 00:45, faisal gillani wrote:
> well i finally wrote my first shell script ... now i
> want to make it
> excutable ... i dont want to run it as ./filename
> i tried to make it excutable with the following
> command
>
> chmod a+x ./filename
This would make it executable, is it readable by the group who will be 
executing it?

>
> is it ok ?
> if yes then why is it not working
>
I guess you mean it is working when you execute it from the directory where 
it resides. That you currently have to enter the dot slash. That is because 
the system variable $PATH does not have the parent directory in it, either 
explicitly declared or as a relative '.' (a dot = current working directory 
CWD) 

The system does not know where to look for the executable, it tries to find 
it in the paths, but to no avail. Typing ./program tells the system where it 
is relative to the CWD.

Dave.

> thanks
> Faisal
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

Reply via email to