Command Line Job - command does not exist

I’m submitting 1 line command job to deadline which looks like this:

Error

However mayabatch is available and properly linked on that machine (enviornment path). If I make .bat file with same command line, it works.
Any ideas?

Deadline currently expects a full path to the render executable, so you’ll have to specify the full path or continue to use a batch file for now.

We’ll look at changing this in Deadline 6 so that applications in the PATH can be used without a full path.

Cheers,

  • Ryan

What is the solution for doing similar stuff on farm that has both Windows and Linux machines?

These two platforms don’t have same file structure so submitting jobs to mixed farm could be problematic.

EDIT: Idea: Probably simplest way is to submit python job which runs command accordingly to OS?
Also if I submit as a Python job, is it possible to create multiple tasks per job (different argument each task - frame)

Currently, the python plugin doesn’t handle frames. It just executes the scripts with the given arguments, so if you give it multiple tasks, it will just run the script the same way for each task.

You could make a copy of the PythonPlugin that ships with Deadline, and then modify it to pass the frames as arguments to the script. Then you could submit your python job to your customized python plugin.

Cheers,

  • Ryan

Thanks rrussell!

If someone needs this in future, quick fix for python Plugin so it submits task frame as last argument.
You can just edit existing python plugin or clone it and rename everything.

Cheers!

Thanks ArYeS, I used it :slight_smile:

I’ll add some more on to it I think end frame etc. It should do the job for what I need!