#!/bin/bash COMMAND="echo Put server command here." echo "Starting Server with command \"$COMMAND\" in $PWD" $COMMAND EXIT=$? echo "Server stopped with exit-code $EXIT." exit $EXIT