Sorry, I was actually asking about adding bluebox port as argument, so I put it into Bluebox section.
But my task is actually bigger than that, everything is inter-related, so it's pretty hard to put my question into a specific area.
Back to the topic, thanks for your help, I have managed to start all processes at once, and save there pid in a file.
The problem right now is that, the pid nohup returns is the shell script process, it doesn't include the pid of java process.
eg. command: ps -A
12140 ttys000 0:00.10 /bin/sh /Applications/SmartFoxServer_2X/SFS2X/sfs2x-standalone
12141 ttys000 0:00.10 /bin/sh /Applications/SmartFoxServer_2X_1/SFS2X/sfs2x-standalone
12423 ttys000 0:04.23 /Applications/SmartFoxServer_2X/.install4j/jre.bundle/Contents/Home/jre/bin/java -server -Dinstall4j.jvmDir=/Applications/SmartFoxServer_2X/.install4j/
12427 ttys000 0:04.16 /Applications/SmartFoxServer_2X/.install4j/jre.bundle/Contents/Home/jre/bin/java -server -Dinstall4j.jvmDir=/Applications/SmartFoxServer_2X/.install4j/
12140 and 12141 are the ones I know. How do I get the ids of the other two? or is there a proper way to do this?