nano question

János Löbb <[email protected]>
Newsgroups gmane.comp.macosx.admin
Message-ID <[email protected]>
Folks,

I am Remote Desktop-ing to a machine and launch nano in a terminal to create some start ans stop files.  Here is one:

bml0066:tomcat administrator$ cat start1.sh
#!/bin/sh  Startup script for the tomcat1 instance
#
CATALINA_HOME=/usr/local/tomcat
CATALINA_BASE=/usr/local/tomcat1
export CATALINA_HOME CATALINA_BASE

$CATALINA_HOME/bin/catalina.sh start


When I try to execute it just by

bml0066:tomcat administrator$ sudo ./start1.sh
/bin/sh: Startup: No such file or directory

But if I execute it in a sub-shell, then it does not complain:

bml0066:tomcat administrator$ sudo sh ./start1.sh
Using CATALINA_BASE:   /usr/local/tomcat1
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat1/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

So, the question is what to do to be able to do just

sudo ./start1.sh

?

The permission mask for start1.sh is:
-rwxr-xr-x  1 root  staff  192 Mar 17 15:16 start1.sh

The same thing for the tomcat startup.sh is:
-rwxr-xr-x@ 1 root  wheel  1956 Mar  5 08:09 bin/startup.sh

The difference is the quarantine bit at the and of the mask.

Thanks ahead,

János
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.