|
|||||
rush -tss > submit-script
Here's a sample submit script:
#!/bin/csh -f # # S U B M I T # source $RUSH_DIR/etc/.submit rush -submit << EOF title SHOW/SHOT ram 250 frames 1-100 logdir $cwd/logs # "-" to disable command $cwd/render-script donemail # "-" to disable autodump done # off, done, donefail cpus vaio=1@100 # Optional #notes This is a test #state Pause #logflags keepall #frames 1-10=Hold:Hello_world #criteria ( linux | irix | osf1 ) EOF exit $status |
Submit scripts don't have to be written as csh scripts. Any language that can pipe text into a command can be used to submit jobs. The following shows a submit script written in Perl:
#!/usr/bin/perl
my $myself = `logname`; $myself =~ s/\n//;
my $pwd = `pwd`; $pwd =~ s/\n//;
open(SUBMIT, "|rush -submit");
print SUBMIT <<"EOF";
ram 10
frames 1-100
logdir $pwd/logs
command $pwd/render-script
donemail $myself
autodump off
criteria ( linux | irix )
cpus +any=10\@100
EOF
close(SUBMIT);
if ( $? >> 8 )
{ print STDERR "-- submit failed --\n"; exit(1); }
exit(0);
|