views:

61

answers:

1

Hello,

I'm trying to make a Terminal Unix command with XCode, and I'm having a little trouble...

What I've been doing is creating a "Standard Tool" written in C in XCode, then copying the produced executable to Developer/Tools/.

What am I doing wrong?

Thanks for any help in advance.

A: 

You need to add /Developer/Tools to your PATH environment variable. In your .profile (or IIRC .bash_profile), you need something like:

PATH="${PATH}:/Developer/Tools"
export PATH
JWWalker
when I type ${PATH} and hit return, /Developer/Tools/ shows up... doesn't that mean it's already added?
Chromium
Yes, I think so, but what exactly does it say? (Maybe the path is misformatted somehow.) Let's go back to the error message. You said: "I type "crbot" in the Terminal, and hit enter, and it says: -bash: crCmd: command not found". If the command crbot is not found it should say `-bash: crbot: command not found`. So where did crCmd come from?
JWWalker
Sorry, I mistyped- it did say: -bash: crbot: command not found.It's odd, because I'm able to run it by typing "/Developer/Tools/crbot", but it doesn't work when I just type "crbot".
Chromium