From owner-freebsd-questions Tue Oct 19 8:54: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 3B0871743B for ; Tue, 19 Oct 1999 08:54:03 -0700 (PDT) (envelope-from freebsd-questions@scc.nl) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id RAA84525 for questions@FreeBSD.org; Tue, 19 Oct 1999 17:24:47 +0200 (CEST) (envelope-from freebsd-questions@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for questions@FreeBSD.org (questions@FreeBSD.org) To: questions@FreeBSD.org Date: Tue, 19 Oct 1999 17:24:39 +0200 From: Marcel Moolenaar Message-ID: <380C8D37.32AC80FD@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <001001bf1a40$a3681640$cd720a0a@ethanol> Subject: Re: "Command not found" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Ethanol Yip wrote: > During my first logon after re-installing the FreeBSD, > I executed the command sysinstall in /stand but failed, with a message > "command not found". Similarly, after my successful compilation of my > C source, the same message appeared when I executed the file a.out or > any executables created by ( cc -o executable source). > > In both cases, I can "see" the executables and list > them by ls. > > Is there something wrong with the FreeBSD or my > working environment? The current directory is *not* part of the standard search paths and unix in general doesn't search the current directory before trying the search paths. This is unlike DOS for example. To run a binary that is not in the search path, specify it's location. In case of sysinstall, either run /stand/sysinstall or ./sysinstall if the current directory is /stand. HTH, -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message