Jeremy Chadwick
2008-Aug-12 21:58 UTC
Fwd: Re: command not found: problem with dash in filenames
----- Forwarded message from KES <kes-kes@yandex.ru> -----> From: KES <kes-kes@yandex.ru> > To: koitsu@freebsd.org > Date: Tue, 12 Aug 2008 23:40:08 +0400 > Subject: Re: command not found: problem with dash in filenames > > > > 12.08.08, 22:25, "Jeremy Chadwick" <koitsu@FreeBSD.org>: > > > On Tue, Aug 12, 2008 at 10:00:02PM +0400, KES wrote: > > > NOTICE: > > > when I run purepw it is located and runned, but > > > when I run pure-pw (NOTICE: dash in name) I get: Command not found > > > kes# env |grep PATH > > > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin > > > kes# env | grep PATH > > > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin > > > kes# ls -l /usr/local/bin/pure* > > > -r-xr-xr-x 1 root wheel 24052 12 ??? 06:24 /usr/local/bin/pure-pw > > > -r-xr-xr-x 1 root wheel 4432 12 ??? 06:24 /usr/local/bin/pure-pwconvert > > > -r-xr-xr-x 1 root wheel 6016 12 ??? 06:24 /usr/local/bin/pure-statsdecode > > > kes# pure-pw > > > pure-pw: Command not found > > > kes# /usr/local/bin/pure-pw > > > > > > Usage : > > > > > > pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>] > > > -D/-d <home directory> [-c <gecos>] > > > [-t <download bandwidth>] [-T <upload bandwidth>] > > > ......... > > > kes# cp pure-pw purepw > > > kes# purepw > > > > > > Usage : > > > > > > pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>] > > > -D/-d <home directory> [-c <gecos>] > > > [-t <download bandwidth>] [-T <upload bandwidth>] > > > ........ > > Looks like you're using csh/tcsh. Try using "rehash" and see if it > > fixes the problem for you. > > thank you very mach > problem was resolved >----- End forwarded message ----- Individual replied to me off-list; "refresh" was indeed the answer. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |