#!/bin/sh # Run flightcrew-gui and check that the process is running. # Author: Francois Mazen TIMEOUT=20 flightcrew-gui& WSID=$(timeout $TIMEOUT xdotool search --sync --name "FlightCrew - ") echo WSID: $WSID if [ -z "$WSID" ]; then echo "flightcrew-gui is not running!" exit 1 else echo "flightcrew-gui is running" exit 0 fi