#!/bin/sh ps -a | grep XboxMediaCenter &> /dev/null if (( $? )) then /complete/path/to/XboxMediaCenter fi