#!/bin/sh APP_ARGS_NAME=\$(echo "APP_${app_name}" | tr '[:lower:]' '[:upper:]')_ARGS APP_ARGS_NAME=\${APP_ARGS_NAME//-/_} # Run the JAR with all passed arguments exec pshell-workbench -b -d -l -k -n -q -console_log=SEVERE -p ${java_file} \${!APP_ARGS_NAME} "\$@"