#!/bin/sh cd /home/testbuild ps -ef | grep testCompile | grep -v grep >runCheck RUNCHECK="./runCheck" if [ -s "$RUNCHECK" ]; then echo "already running" exit; else testCompile fi