#!/bin/bash # usage: runAsyncMain /tmp/FileForPID if (( $# < 1)); then echo "Please specify the path to the semaphore file"; exit 1 fi /home/robocop/robTester/svnRobTester/SCRIPTS_2/main & echo $! > $1