[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Maya Rendering: Condor_exec weirdness with our batch




I don't anything about maya, but in /bin/sh programming, shift doesn't change $0, just the numbered arguments, so try something like


#!/bin/sh

HOMEROOT=$1
shift
USERNAME=$1
shift
RESOURCEPATH=$1
shift

/some/path/mayarender $@ ${HOMEROOT}${USERNAME}${RESOURCEPATH}

Good luck!

-greg


Gooding, Stephen L wrote:
Greetings once again!



This is the error we are getting:



More than one scene file specified: /mnt/holdusers/home/lookout/g2/goodings/condor_jobs/429_sphere-2434/source_files/sphere.mb and /home/condor/local.shasta/execute/dir_7149/condor_exec.exe/tmp/home/condor/local.shasta/execute/dir_7149/condor_exec.exe



Here is our batch script that runs to execute our Maya jobs:



#!/bin/bash

shift

HOMEROOT=$0

shift

USERNAME=$0

shift

RESOURCEPATH=$0

shift

/mnt/ics-render/software/linux/maya-6.0/bin/mayaSWrender $* $HOMEROOT$HOME$RESOURCEPATH

Shift



The reason for this is that we have a different path to the homeroot depending upon the user that is submitting. We have to generate this path every time we submit a job.



Here is the job description file:



# sphere

Universe = vanilla

Executable = /hold/condor_job/RenderThis.$$(OpSys).bat

environment = $$(ENVIRONMENT)

log = crW.log

error = crW.err

output = crW.out

notification = Never

requirements = (OpSys == "LINUX") && (Arch == "INTEL") && (Machine == "shasta.ics.purdue.edu")

initialdir=/home/lookout/g2/goodings/condor_jobs/429_sphere-2434

should_transfer_files = ALWAYS

WhenToTransferOutput = ON_EXIT_OR_EVICT

Arguments = -rd . -s 1 -e 1 -b 1.0000 /mnt/holdusers/home/lookout/g2/goodings/condor_jobs/429_sphere-2434/source_files/sphere.mb

Queue





Thanks for any help,



Lee




------------------------------------------------------------------------

_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users