|
From: Leif M. <le...@ta...> - 2007-02-26 17:49:40
|
Mark, Hmm, the most common problem are line feeds, but it sounds like you have checked that. What version of the Wrapper are you using? Is the shell script from the same version. Newer versions of the shell script should handle this better, but have you made sure that the wrapper binary exists, is the correct version for the platform, and has its executable bit set? When all else fails, try adding the following towards the top of the shell script. --- echo "Here" --- Try rerunning it. If you see the message, then we know that the script is being run and that is a problem with something in the script. If not then we know that is something wrong with the script that is severe enough that the script can't be run at all. If it is something in the script, try adding more echo statements to track down the culprit and get back to me. A pain, but that will be the fasted route to a solution. Cheers, Leif Mark Leone wrote: > 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 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |