QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Adding the current working directory to search path |
Ref. No. |
QNX.000010419 |
Category(ies) |
Configuration |
Issue |
After compiling and linking a program I wrote I can't run it. The file exists in the directory but when I try to run it I get "<filename> not found".
|
Solution |
The current working directory is not in your PATH environment variable. You can run your program as is by adding './' infront of your program name eg. ./hello
To add the current working directory to your path so that you won't need the './', add the following line to your /home/<username>/.profile file: export PATH=$PATH:. (Note: that's a colon and period that follows $PATH) |
|