#!/bin/bash # Specify the path to the jar or classes containing your tasks. MY_TASKS="tasks.jar" # Set any options you'd like to pass to the JVM here. options[0]="configFile=`pwd`/example-config.yml" options[1]="log4j.configuration=`pwd`/log4j.properties" # You shouldn't need to touch anything below # this line, but feel free to mess around. JVM_OPTS="-server" CLASSPATH="jar/octobot.jar" EXECUTABLE="com.urbanairship.octobot.Octobot" for i in "${options[@]}" do JVM_OPTS="$JVM_OPTS -D$i " done echo -e "Launching Octobot...\n" java $JVM_OPTS -cp $MY_TASKS:$CLASSPATH $EXECUTABLE