Quote:
Originally Posted by Libran
I've googled and searched, but can't find an answer to my first post here.
Using FreeBSD v7.0, I wrote a simple test program in c that just outputs a few lines of text to the screen. I discovered that the program apparently cannot be run from within the same directory where it resides. So, I moved it to /usr/local/bin, and now can execute it from my home directory.
I'm using the JWM window manager, and put my c program into the JWM menu, but it won't execute from there. Both JWM and the program reside in /usr/local/bin.
I'd like to be able to run the program either from the command line or from the JWM menu. I'm guessing I need to know the correct directory in which to put the program. Any help is appreciated.
|
If the following command output doesnt contain the dir of your program
%echo $PATH
then you need to add the dot to the beginning of that dir
%
./path/of/a.out