Executables

I seem to be having problems running an executable in any other directory
other
than “/bin” - I am “root” and the file I’m trying to execute has been
downloaded using
ftp into a /home type director. I have done a chmod 777 filename but to no
avail.
The file runs OK when copied to the “/bin” directory ?

Any other ideas - It exists when the directory is listed but when it is
executed QNX
says “no such file or directory”

root’s path does not include the current directory, so the OS can’t find the
executable file.
Try ./filename

Marty

“Bob miles” <rmiles@radamec.co.uk> wrote in message
news:9c9evr$ncq$1@inn.qnx.com

I seem to be having problems running an executable in any other directory
other
than “/bin” - I am “root” and the file I’m trying to execute has been
downloaded using
ftp into a /home type director. I have done a chmod 777 filename but to
no
avail.
The file runs OK when copied to the “/bin” directory ?

Any other ideas - It exists when the directory is listed but when it is
executed QNX
says “no such file or directory”
\

… and if you do this, be aware it can be a security risk in some
situations.


jchausler wrote:

Marty Doane wrote:

root’s path does not include the current directory, so the OS can’t find the
executable file.
Try ./filename

And if you get tired of typing the ./ everytime, just add the following
line to your /etc/profile

PATH=$PATH:.

Chris