#!/bin/bash #This is an example file how Events on START or STOP can be uses # #Set logfile location and filename logfile=/tmp/scriptlog.txt #Case selection for first parameter parsed case $1 in gameStart) echo "START" > $logfile echo "$@" >> $logfile ;; gameStop) echo "END" >> $logfile ;; esac