From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: command line submit and shake
   Date: Wed, 28 May 2008 17:20:22 -0400
Msg# 1747
View Complete Thread (6 articles) | All Threads
Last Next
Michael Oliver wrote:
> [posted to rush.general]
> 
> I have a jobdone command running just fine.  It parses in the original shake 
> file, grabs the rendered out images, throws them into another shake script, 
> and then renders out a QT.  Problem is the process happens by the computer 
> that submitted the original job.  (I know we could use a dedicated job 
> server..and we probably should.. but that's not the current situation). 
> Instead I would like to have the jobdone command submit a new job to rush 
> and have it render on a designated computer (we'll call it qtRenderNode).

	Right; you could have it 'rsh' the command to qtrendernode.

> How do I go about using the command line to submit a new job in the 
> background?  Is there an easy command line way or do I need to go back in 
> and edit/re-parse the input file?

	Yes, if you want to make your own submit script, there are
	some nice simple examples here in various languages (perl,python,csh,sh..):
	http://www.seriss.com/rush-current/rush/rush-submit.html

	Basically it comes down to piping some commands into 'rush -submit'.
	In your case it would be a 'one frame' job, so if you had a CSH
	script called "/yourserver/yourstuff/render-me.csh", you could
	submit it as a one frame job with:

rush -submit << EOF
title   YOURJOB
frames  1
command /yourserver/yourstuff/render-me.csh -arg1 -arg2
cpus    qtrendernode=1
EOF

	..where '-arg1' and '-arg2' are optional arguments to your script
	that eg. tells the script where to find the files to be converted,
	the quicktime filename to use, etc.

	And you can fire off the above from within your 'jobdonecommand'.
	Or, you can just make the jobdonecommand fire off rsh or ssh
	to run the quicktime conversion.



-- 
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)

Last Next