Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing a .sh file on the internet

Status
Not open for further replies.

jackz15

Programmer
Jun 28, 2006
103
US
hi i am trying to load a chat program which combines java and flash(Oregano Server), it works when i connect to localhost on my own computer because i executed start.bat(or start.sh, if not windows), start.bat must be running to keep the server running. Now i tried to put the chat program on the internet, everything was fine till i got to the executing part, is it impossible to execute AND let a .bat or .sh file run on a web host? is there a way to bypass this?
heres is the start script:
#!/bin/sh

SERVER_ADDRESS="localhost"
SERVER_TYPE=Standalone

PRIMARY_ADDRESS=
RMI_PORT=

MEMORY_INIT=64M
MEMORY_MAX=128M



/usr/bin/nohup java -Xms$MEMORY_INIT -Xmx$MEMORY_MAX -cp ./oregano_1_1_0.jar:.:./extensions org.omus.core.Start $SERVER_TYPE $SERVER_ADDRESS $PRIMARY_ADDRESS $RMI_PORT &
echo $! > ./oregano.pid
thanks
 
What is start.bat or start.sh ?
Whats the actual error ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
start.bat starts the server up so it can be connected to, if it isn't up then the chat program can't connect to the database and thus can't work
 
Is the server yours or is it any kind of external hosting? And, of course, what error do you get?

Cheers,
Dian
 
the mysql server belongs to xmgfree.com(my web host). And i havent debugged it yet, it has the ability to print all the errors on a log, even online. so i get that soon.
 
nvm...:( it seems that the debugging log doesn't work, all ican tell you is that when i register for an account, my browser says connecting to localhost..., then after a little while its done, and i am still not logged in. theres two problems, one is the fact that java is not installed either on the host. but java is so humongous, my host almost can't fit it, perhaps i can ignore somethings in it, but what?
the other problem is this running the server thing... oregano has so poor support... no one hardly uses it these days, if only someone who has already gone past my stage can show me a hand...it'd be alot easier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top