Skip to content

Instantly share code, notes, and snippets.

@deajan
Last active September 26, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deajan/eedae7031fff8d875f365ed2019450e8 to your computer and use it in GitHub Desktop.
Save deajan/eedae7031fff8d875f365ed2019450e8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
script_dir="$(dirname $0)"
if [ -f "$script_dir"/jre/bin/java ]; then
cd "$script_dir"
./jre/bin/java -Xmx128m -cp "lib/secure_shelp.jar:lib/secure_utils.jar:lib/secure_nlink.jar:lib/mail.jar:lib/activation.jar" -Djava.awt.headless=true SecureRunner1 com.aem.shelp.proxy.ProxyServerStop
else
cat <<< "$script_dir/jre/bin/java not found." 1>&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment