|
From: Mark L. <mid...@ve...> - 2007-02-26 14:17:06
|
Chris wrote: > Are you sure you don't have to type "./RCBServer" to run a local script? > Otherwise (without the "./"), won't it just look in the PATH for the > RCBServer executable? > > Does the first line in the script point to a real interpreter on your > system? i.e. > #!/path/to/sh > Thanks for responding. I tried ./RCBServer just now, and still get the "Command not found" response. Also the first line in the script is #!/bin/sh. I do have sh at that location, and when I type "/bin/sh" I get a shell prompt. I verified that the execute bit is set for all three groups on /bin/sh. Also, I have many other scripts that I can run by typing their name. For example I have a Tomcat startup script named Tomcat that I can execute by typing Tomcat from the script directory. It has the same first line as the script that won't execute. The Wrapper script came with a space after !, i.e. #! /bin/sh. My Tomcat script doesn't have this space, i.e. #!/bin/sh, so I tried that also and still get the Command not found error. If I try to launch the script via double-clicking in the Finder, the system asks me what application I want to use to open that document. But the metadata for the file says that it's a Unix executable file. I don't know if that's normal, or a hint to what is preventing this script from executing. -Mark |