Example of shake command xml – Apple Compressor 3 User Manual

Page 365

Advertising
background image

Description

Submission command option

Use to specify the name of the cluster to which you want to send
the job. Using the cluster name, Apple Qmaster looks for the cluster
on the network in order to use it.

-clustername <name>

Use to specify a name for the batch so that you can easily recognize
it in Batch Monitor.

-batchname <name>

Optionally, you can use

-clusterid

to enter the cluster ID and

port number instead of using

-clustername

. (When you enter

the cluster ID and port, less time is required to find the cluster on
the network.)

Or, if you used

-clustername

and the cluster requires a password,

use

-clusterid

to specify the user name and password. (You

need to include the

IP address:port number

as well whenever

you use

-clusterid

.)

Use

Apple Qmaster -show

to see a cluster’s IP address and port

number.

-clusterid <user

name:password@IP

address:port number>

Specifies the kind of command you are entering:

Shell, Shake,

Maya,

or other command, depending on the application you want

to use for distributed processing.

-command <command type>

Specifies the command with XML code. Enter the XML code after

-options

, with the necessary qualifiers for entering it in a shell.

See

Example of Shake Command XML

, next, for an example.

If no

-option

is entered, the values from the application’s

preferences file, in ~/Library/Preferences/, are used (which are the
values of the most recent job submitted).

-options <XML command>

Use to specify the working directory path (from which the command
should be executed). The default working directory is
/Applications/Shake.

-wd <working directory>

Use to specify the number of seconds before Apple Qmaster can
quit when looking for a cluster. The default value is 0, which puts
no limit on the timeout and allows Apple Qmaster to browse the
network for as long as it needs to find the cluster.

-timeout <seconds>

Shows the ID information for the cluster specified with

-clustername

or

-clusterid

, or for all clusters if no cluster is

specified.

-show

Displays information about supported options for

Apple Qmaster

.

-help

Example of Shake Command XML

The code below is an example of XML code for submitting a Shake command.

/Applications/Apple\ Qmaster.app/Contents/MacOS/Apple\ Qmaster -clustername

elvis -command "Shake" -options "<command

executable="/Applications/Shake/shake.app/Contents/MacOS/shake"

script="/Volumes/Data/scripts/applestyle.shk" start="1" end="1000"

stepsOf="1" minCount="10" otherOptions="" previewNode="" previewWidth="0"

shutterOn="yes" motion="yes" proxyFlags="0" proxyScale="1.000000"

proxyRatio="1000.000000" shutter="1.000000"></command>"

365

Appendix C

Using the Command Line

Advertising