From owner-freebsd-questions@FreeBSD.ORG Sat Jun 19 14:27:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A645216A4CE for ; Sat, 19 Jun 2004 14:27:30 +0000 (GMT) Received: from bilbo.otenet.gr (bilbo.otenet.gr [195.170.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0EA043D2F for ; Sat, 19 Jun 2004 14:27:29 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b156.otenet.gr [212.205.244.164]) i5JER2IJ018913; Sat, 19 Jun 2004 17:27:03 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i5JER2FK077373; Sat, 19 Jun 2004 17:27:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i5JER2xl077372; Sat, 19 Jun 2004 17:27:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 19 Jun 2004 17:27:02 +0300 From: Giorgos Keramidas To: Bruce Hunter Message-ID: <20040619142702.GE76742@gothmog.gr> References: <1087105316.48711.3.camel@solid.solisixoffice.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1087105316.48711.3.camel@solid.solisixoffice.com> cc: freebsd-questions@freebsd.org Subject: Re: Application commands without having to restart X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 14:27:30 -0000 On 2004-06-13 01:41, Bruce Hunter wrote: > Hello everyone, > > I just installed a port. Usually, a application has a define command to > start it and can be run from anywhere on the command line. When you > first install an application. The command isn't available to the system > until after a reboot. Nah, not really. You can always run it with its full pathname: tcsh> sh /usr/local/etc/rc.d/foo.sh start > How do I make the system aware? Refresh the commands list? > Any reading material on this? Are you using tcsh as your login shell? If yes, just run: tcsh> rehash This should 'refresh' tcsh's idea of what commands are available. I don't remember about zsh, but I think it has a 'rehash' command too. GNU bash should take care of this automagically. - Giorgos