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

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




Looks like this is a maya-specific issue, and outside my realm, but you might trying sticking a


set -x

near the top of your script. This will print each expanded command to stderr before running the command. Condor should redirect this to your CrW.err file, as per your submit file. Looking at this should tell you exactly what's going on in your script.

Good luck,

-greg


Gooding, Stephen L wrote:
That solved that problem. Thanks a ton. :-)

Now for the other issue:

Arguments being passed:

Arguments = /mnt/holdusers /home/12/username
/condor_jobs/429_sphere-5624/source_files/sphere.mb  -rd . -s 1 -e 1 -b
1.0000

I have 2 versions of the batch file now, and neither works. Here is the
first

#!/bin/bash
HOMEROOT=$1
shift
HOME=$1
shift
RESOURCEPATH=$1
shift
/mnt/ics-render/software/linux/maya-6.0/bin/mayaSWrender $@
${HOMEROOT}${HOME}${RESOURCEPATH}
Resulting in:
** Fatal Error: Failed creating directory:
/home/lookout/g2/goodings/maya


Batch file 2 (without the last shift statement)

#!/bin/bash
HOMEROOT=$1
shift
HOME=$1
shift
RESOURCEPATH=$1
shift

/mnt/ics-render/software/linux/maya-6.0/bin/mayaSWrender $@
${HOMEROOT}${HOME}${RESOURCEPATH}

The second batch file will give me the proper path, but this is what I
get:

More than one scene file specified:
/condor_jobs/429_sphere-5259/source_files/sphere.mb and
/mnt/holdusers/home/lookout/g2/goodings/condor_jobs/429_sphere-5259/sour
ce_files/sphere.mb



-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Greg Thain
Sent: Friday, April 29, 2005 2:13 PM
To: Condor-Users Mail List
Subject: Re: [Condor-users] Maya Rendering: Condor_exec weirdness with
ourbatch


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/sour
ce_files/sphere.mb


and


/home/condor/local.shasta/execute/dir_7149/condor_exec.exe/tmp/home/cond or/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/sour ce_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

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

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