Hey, I'm quite new to CentOS/linux and I'm trying to run a server. I've installed all the required things, and the server was originally meant to be ran on windows, hence I had problems making it compatible with CentOS. The problem I'm having is that I'm not sure if my .sh is in proper format for it to launch, because it doesn't show any error nor any signs of success so I'm not too sure if it's working. Any ways, this is what happens when I launch it from terminal.
Code:
[root@xx lithium]# sh dump-items.sh
[root@xx lithium]# sh dump-mobskills.sh
dump-mobskills.sh: line 2: export: `-server': not a valid identifier
dump-mobskills.sh: line 2: export: `-Dnet.sf.odinms.wzpath=/wz': not a valid identifier
dump-mobskills.sh: line 2: export: `tools.wztosql.DumpMobSkills': not a valid identifier
[root@xx lithium]# sh dump-quests.sh
[root@xx lithium]# sh launch.sh
I've changed the dump-mobskills.sh to export CLASSPATH instead of set CLASSPATH just to test it. Here are the .sh files.
dump-items.sh
Code:
#!/bin/sh
set CLASSPATH=dist/booms.jar:mina-core.jar:slf4j-api.jar:slf4j-jdk14.jar:mysql-connector-java-bin.jar java -server -Dnet.sf.odinms.wzpath=/wz tools.wztosql.DumpItems
dump-mobskills.sh
Code:
#!/bin/sh
export CLASSPATH=/dist/booms.jar:mina-core.jar:slf4j-api.jar:slf4j-jdk14.jar:mysql-connector-java-bin.jar:bcprov-jdk16-145.jar java -server -Dnet.sf.odinms.wzpath=/wz tools.wztosql.DumpMobSkills
dump-quests.sh
Code:
#!/bin/sh
set CLASSPATH=/dist/booms.jar:mina-core.jar:slf4j-api.jar:slf4j-jdk14.jar:mysql-connector-java-bin.jar:bcprov-jdk16-145.jar java -server -Dnet.sf.odinms.wzpath=/wz tools.wztosql.DumpQuests
launcher.sh
Code:
#!/bin/sh
set CLASSPATH=/dist/booms.jar:mina-core.jar:slf4j-api.jar:slf4j-jdk14.jar:mysql-connector-java-bin.jar java -server -Dnet.sf.odinms.wzpath=/wz server.Start
When I run it in gui, the run in terminal opens and closes right away, whilst for run it doesn't show up at all. I can't think or find anything that seems to be wrong.
-Steven