From owner-freebsd-questions Sat Dec 28 11:20:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA21757 for questions-outgoing; Sat, 28 Dec 1996 11:20:52 -0800 (PST) Received: from horton.iaces.com ([204.147.87.98]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA21752 for ; Sat, 28 Dec 1996 11:20:49 -0800 (PST) Received: (from proot@localhost) by horton.iaces.com (8.8.4/8.7.3) id NAA05753; Sat, 28 Dec 1996 13:20:44 -0600 (CST) From: "Paul T. Root" Message-Id: <199612281920.NAA05753@horton.iaces.com> Subject: Re: your mail To: root@geo.geoaccess.net (root) Date: Sat, 28 Dec 1996 13:20:44 -0600 (CST) Cc: questions@freebsd.org In-Reply-To: <199612271712.JAA01210@geo.geoaccess.net> from root at "Dec 27, 96 09:12:57 am" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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