Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > shell

shell
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Reply With Quote
Apr 15, 2002, 04:11 PM
 
I install jboss and tomcat in X.
But it can't run startup.sh file.
just reply 'command not found'
how to run .sh file?
thank you.
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Apr 16, 2002, 03:21 AM
 
Originally posted by lance88:
<STRONG>I install jboss and tomcat in X.
But it can't run startup.sh file.
just reply 'command not found'
how to run .sh file?
thank you.</STRONG>
To run any script it needs to be a)executable and b) in your $PATH

Chances are the script is executable, but you can ensure that by running:

chmod u+x startup.sh

Path problems are far more common, especially when running as root (or using sudo). Try specifying the full pathname or use ./startup.sh to execute the script if you're already in the directory (./ means execute from the current directory)
Gods don't kill people - people with Gods kill people.
     
lance88  (op)
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Reply With Quote
Apr 16, 2002, 09:03 AM
 
Thank you!
It work now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:46 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2