divination23

Q: Qmaster command line job submission?

I've had the darndest time finding any information about submitting Qmaster jobs via the command line.

 

All of the docs repeatedly reference this single example:

 

/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>"

 

Shake doesn't even exist as a commerical software at this point :\ so it's not a very useful example anymore.

 

What I'm trying to do is use the "Shell" command type.  I thought I had it working by using the -script argument, but this seems to run the script as a local process when I submit the job.  The job is queued up, and runs, but it just sits there doing nothing, I don't think its calling the script I passed along.

 

Also I tried this, but it doesn't work:

 

Apple Qmaster -clustername test -batchname cmdlinesubmit -command "Shell" -wd /Users/username/bin/ -options "<command command='touch /Users/username/bin/batchjob.txt'></command>"

 

The job appears in the queue and starts running, but the batchjob.txt never gets created.

 

I know how to do this via the Qmaster GUI, but I'm trying to use this in a batch processing setup for applications and scripts that do not have a dedicated Qmaster command type (ie: "Shake" "Generic Render" etc.)

 

Alternatively, is there a way for me to create my own "Job Types" in a plist somewhere, so that I can use the -options xml format?

 

This seems to be a dark art, as I can find almost nothing on the internet about it.

 

I'm sure the cluster is setup and working, as I can submit jobs successfully via the Qmaster GUI, and they run fine.  Its just the command line submission I'm having trouble with.

 

Any help would be most appreciated!!

-Andy

Qmaster, Mac OS X (10.7.5)

Posted on Oct 5, 2012 2:42 PM

Close

Q: Qmaster command line job submission?

  • All replies
  • Helpful answers