Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2013 17:34
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Setting the default app server file
echo "TTNRT : about to forever start $APP_FILE"
# Getting arguments as array
if [ ${ARGS[0]} = "start" ]; then
echo "Staring: $APP_FILE"
echo `forever start -l forever.log -o out.log -e err.log ~/TTN-RT/"$APP_FILE"`
elif [ ${ARGS[0]} = "stop" ]; then
echo "Stopping: $APP_FILE"
echo `forever stop "$APP_FILE"`
echo 'Um, you didn\'t tell me what to do [start | stop]'
echo 'FIN.'
Copy link

I get this error

./ttnrt: line 27: unexpected EOF while looking for matching `''
./ttnrt: line 28: syntax error: unexpected end of file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment