Application commands without having to restart
    Giorgos Keramidas 
    keramida at ceid.upatras.gr
       
    Sat Jun 19 07:27:30 PDT 2004
    
    
  
On 2004-06-13 01:41, Bruce Hunter <bhunter at solisix.com> 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
    
    
More information about the freebsd-questions
mailing list