hello people i'm struggling with a mac os x 10.5.8 that i've started using recently for development.i successfully installed tomcat and create launchd.conf for my environment variables.i believe it works fine.coz i can build a project with netbeans using maven and cargo plugins succesfully so i found online a script for start and stop the tomcat
#!/bin/bash
case $1 in
start)
sh /Library/apache-tomcat-6.0.20/bin/startup.sh
;;
stop)
sh /Library/apache-tomcat-6.0.20/bin/shutdown.sh
;;
restart)
sh /Library/apache-tomcat-6.0.20/bin/shutdown.sh
sh /Library/apache-tomcat-6.0.20/bin/startup.sh
;;
*)
echo "Usage :start|stop|restart"
;;
esac
exit 0
that script was created in nano in sudo sh but when i want to run it. is spit out this
sh: /usr/bin/tomcat: Permission denied
i've added chmod 755 *.sh and *.bat inside /Library/apache-tomcat-6.0.20/bin
still access denied so what do i go around that?i have the admin privileges on the machine thanks for reading