3
Table Of Contents
- Distributed Processing Setup
- Contents
- Introduction to DistributedProcessing
- Getting Started Quickly
- Preparing a Network forDistributed Processing
- The Interfaces
- Creating and AdministeringClusters
- An Overview of Configuring a Cluster
- Configuring Service Nodes and Cluster Controllers
- Creating Clusters with AppleQadministrator
- About QuickClusters
- Advanced Settings in the AppleQmaster Preferences Pane
- Modifying and Deleting Clusters With AppleQadministrator
- Monitoring Cluster Activity
- Accessing Activity Logs
- Setting Cluster Preferences
- Setting Passwords and Scratch Storage
- Recovery and Failure Notification Features
- Command-Line Usage
- Installing AppleQmaster from the Command Line
- Shell Commands for Configuring Service Nodes and Cluster Controllers
- Shell Commands for Submitting Compressor Jobs
- Shell Commands for Submitting AppleQmaster Jobs
- Shell Commands for Monitoring Batches
- Using Scripts to Run AppleQmaster, Compressor, and BatchMonitor
- Troubleshooting
- Index
Appendix A Command-Line Usage 75
Using Scripts to Run Apple Qmaster, Compressor, and Batch Monitor
To simplify your use of the command line, you can add command-line-friendly scripts
to /usr/bin. Each script sets an ENV variable for location, then executes the binary.
Using the following scripts would be useful if you frequently use the command line for
submissions or automated submissions. You do not need to specify the full path and
you can add frequently used ENV variables and options to speed up the submission
process. To run Apple Qmaster, Compressor, or Batch Monitor, you can simply open
up a terminal, and type qmaster, compressor, or batchmonitor.
Apple Qmaster Script Example
#!/bin/csh -f
#
# set env var, QMASTER_LOCATION if not set
#
if ${? QMASTER_LOCATION} == 0 then
pushd `dirname $0` >& /dev/null
setenv QMASTER_LOCATION /Applications/Apple\ Qmaster
popd >& /dev/null
endif
#
# launch qmaster
#
exec ${QMASTER_LOCATION}/Apple\ Qmaster.app/Contents/MacOS/Apple\ Qmaster
$argv:q
Compressor Script Example
#!/bin/csh -f
#
# set env var, COMPRESSOR_LOCATION if not set
#
if ${?COMPRESSOR_LOCATION} == 0 then
pushd `dirname $0` >& /dev/null
setenv COMPRESSOR_LOCATION /Applications/Compressor.app/Contents/MacOS
popd >& /dev/null
endif
#
# launch Compressor
#
exec ${COMPRESSOR_LOCATION}/Compressor $argv:q










