beautypg.com

Apple Qmaster 3 User Manual

Page 42

background image

Batch Monitor Script Example

#!/bin/csh -f

#

# set env var, BATCHMONITOR_LOCATION if not set

#

if ${?BATCHMONITOR_LOCATION} == 0 then

pushd `dirname $0` >& /dev/null

setenv BATCHMONITOR_LOCATION

"/Applications/Utilities/Batch Monitor.app/Contents/MacOS"

popd >& /dev/null

endif

#

# launch Batch Monitor

#

exec "${BATCHMONITOR_LOCATION}/Batch Monitor" $argv:q

42

Chapter 1

Using Apple Qmaster 3