View Single Post
  #1   (View Single Post)  
Old 10th August 2008
Libran Libran is offline
New User
 
Join Date: Aug 2008
Posts: 5
Default Executing a c program

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.
Reply With Quote