You can't run a Mac OS X executable on an iPhone. Or vice versa. Different processors, among other things.
If you have the source, you can compile the code for the iPhone using the iPhone SDK. But if it's designed to be run as a command line program, you're going to have issues because there's no Terminal on the iPhone. Unless you're talking about a jailbreak environment, which is out of scope for this forum.
You'll have to take that command line code and wrap it in an iPhone application to do what you want, I think.
joe
|