Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 1996 13:20:44 -0600 (CST)
From:      "Paul T. Root" <proot@horton.iaces.com>
To:        root@geo.geoaccess.net (root)
Cc:        questions@freebsd.org
Subject:   Re: your mail
Message-ID:  <199612281920.NAA05753@horton.iaces.com>
In-Reply-To: <199612271712.JAA01210@geo.geoaccess.net> from root at "Dec 27, 96 09:12:57 am"

next in thread | previous in thread | raw e-mail | index | archive | help
In a previous message, root said:
> 
> Hello
> 
> I need urgent help from you!
> 
> Recently I purchased FreeBSD Release 2.1.5 and installed on my machine
> for developer package.  I tried to run a small program hello.c to print 
> on screen. 
> 
> After editing  hello.c and I compile it as as:
> 	gcc -o hello hello.c
> 	hello
> 
> It supposed to print:
> Hello World!
> 
> However, the system responded:
> 	"Command not found"
> 
> I checked file mode hello and it was rwxr_xr_x.  It should run. Also
> I made a perl script to rpint "Hello world!".
> I set the script mode as 777 after editing. When I tried to run it, it
> gave me the same error message as before for c program hello.
> 
> What do I have to do to run it?
> 
> Would you please help me out?
> It would be greatly appreciated.

You have to set your PATH to include . 

or run the program as ./hello

CWD is not in your path by default



-- 
when everyone is out to get you, being paranoid is just good thinking.
                                    --Dr. Johnny Fever



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612281920.NAA05753>