Click to See Complete Forum and Search --> : chkfontpath
gary_r_james
11-10-2001, 07:20 AM
I am trying to install TTFs. When I try to run chkfontpath I receive "bash file not found" error. When I go to the "/usr/sbin" directory and do "ls chkfontpath" the file is listed. I can't run it in that directory either.
Thanks,
X_console
11-10-2001, 12:07 PM
Have you tried running it as root?
gary_r_james
11-10-2001, 01:17 PM
Yes, I have tried as root and as user. Still no luck.
gary_r_james
11-10-2001, 05:07 PM
I rebooted, logged in as root and that let me do the command.
Thanks,
vee-eye
11-10-2001, 07:17 PM
gary, when you su to root (as I am pretty sure you did the first time), you don't aquire roots $PATH variable, which is needed to run chkfontpath alone. Otherwise, you would have to use /usr/sbin/chkfontpath (type that into the command line). When you log in as root (no su), you are given roots PATH.
If you want to use su and gain root's PATH, use su - instead of just plain su. This will also send you straight to root's login directory.
I hope I have explained this clearly enough. In case you didn't know, when you type in a program name alone, the $PATH variable designates what directories will be searched in order to find that program. /usr/sbin is in root's PATH, but not in the user's PATH. And, if you just type in the location (path) of a program, it will execute the program, whether or not the directory of the program is in your PATH.
[ 10 November 2001: Message edited by: vee-eye ]
gary_r_james
11-10-2001, 08:29 PM
vee-eye,
Thanks for the informative post. That is the best explanation of a simple topic I have ever read on this board.Now if someone could solve my cdrom mounting issues so thoroughly.
Thanks,