Re: Adding a new command
- From: Peter Boosten <peter@xxxxxxxxxxx>
- Date: Sat, 07 Jul 2007 18:42:09 +0200
Lisa Casey wrote:
Hi,
Once I get this new system going I promise I'll quit pestering you folks
:-)
Got another question. This should be simple to answer. I've done this
before but can't seem to replicate it this morning. I have a few scripts
my employees use to do things such as add a new radius user, restart the
radius server and tail the radius log file. The most simple one is
radlog. The file radlog contains the line:
tail -f /var/log/radius.log
I need to be able to type radlog from anywhere on the system and have it
work.
I put the file radlog in /bin (/bin and /sbin are all in my shell's
path). Ownership is root/wheel permissions are 555 (I've tried 700 and
777 - these don't need write access though). But when I type radlog I
get command not found. I can type ./bin/radlog and it works but I don't
want that. I thought if the file was in my path and if it was executable
just typing the name of the file from anywhere would work but evidently
I'm overlooking something. What?
try typing 'rehash' first (without the quotes).
It's more obvious to put local scripts in /usr/local/bin, IMHO.
Hope this helps.
Peter
--
http://www.boosten.org
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Adding a new command
- From: Jeffrey Goldberg
- Re: Adding a new command
- References:
- Adding a new command
- From: Lisa Casey
- Adding a new command
- Prev by Date: Re: game advice
- Next by Date: Re: An ssh Question
- Previous by thread: Adding a new command
- Next by thread: Re: Adding a new command
- Index(es):
Relevant Pages
|