Joel Uckelman on 5 Jun 2002 21:33:44 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [hosers-talk] Jon admits luser, lamer membership; Hosers rejoice


Thus spake "Jon Stewart":
> 
> What the fuck?
> 
> Jon owns a shell script, which purports to start up Tomcat 4.0.3. He did
> chown and all that. The permissions are:
> 
> 	rwxr-xr-x
> 
> So Jon, in the directory which contains the script, types:
> 
> ./startup.sh
> 
> Results?
> 
> ./startup.sh: Command not found.
> 
> So, be more explicit:
> 
> /usr/local/jakarta-tomcat-4.0.3/bin/startup.sh
> 
> Again:
> 
> "$_": Command not found.
> 
> 
> 
> What the fuck?
> 
> CATALINA_HOME -- Tomcat's necessary env variable -- is set correctly.
> 
> PATH is:
> /Users/jon/bin/powerpc-apple-darwin:/Users/jon/bin:/usr/local/bin:/usr/bin:/b
> in:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/jakarta-tomcat-4.0.3/bin
> 
> As you can see, in an act of desperation, I added the script's directly to 
> my path, to no avail.
> 
> Why oh why can't I run this shell script?
> 
> 
> Damn thing is, I ran into this once before and figured it out, but I've 
> long since forgotten how I did that.

Try this:

sh startup.sh

If it works now, take a look at the first line of your script, which I'll 
be willing to bet is not "#!/bin/sh" like it should be.

-- 
J.