Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Help! | 18 comments | Create New Account
Click here to return to the 'Help!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Help!
Authored by: kernits on Jan 10, '02 02:12:00AM

I created the file and did the chmod +x on it but I get this error upon execution:

[localhost:~] username% ls | xspeak
xspeak: Command not found.

I placed the xspeak app in this location:

[localhost:~] username% locate xspeak
/usr/bin/xspeak

The same place as the clear command. Any help would be appreciated, thanks!

- Ralph



[ Reply to This | # ]
Help!
Authored by: rg200 on Jan 10, '02 11:40:29AM

Do you need to "rehash"? (I mean type rehash at the command prompt...)

It causes the machine to have a look to see if the contents of directories really are what it thinks they are, and usually you need to do it when you put a new command on the system, like xspeak.

I might be wrong - I have never used MacOSX (buying a Tibook next week!) but the above has been my experience with unix.

Russell



[ Reply to This | # ]
Help!
Authored by: Anonymous on Jan 10, '02 02:16:48PM

As rg200 said, you should just need to type "rehash" and it should work.

Might I also suggest that you create a "/User/yourusername/bin" directory, and add it to your path at the prompt:

% mkdir ~/bin
% vi ~/.cshrc and add/modify the line:
set PATH "${PATH}:/User/yourusernamehere/bin")


Good luck.

It's good to keep non-system stuff out of /usr bin directories itself, and store them in /usr/local/bin or ~/bin, instead. It also makes it easy for backups, because you don't have to dig through system directories and figure out which scripts/executables you installed, and which are OS X installed.



[ Reply to This | # ]