How to run deadlinecommand without an x server

When I’m running deadlinecommand, what’s the equivalent to the -nogui flag on all the other deadline* executables? I’m trying to run it in a cron job, but it doesn’t have access to my x server so I get this:

[code]QXcbConnection: Could not connect to display
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) Python.Runtime.Runtime.PyObject_Call (intptr,intptr,intptr) <0xffffffff>
at Python.Runtime.ImportHook.import (intptr,intptr,intptr) <0x00303>
at (wrapper native-to-managed) Python.Runtime.ImportHook.import (intptr,intptr,intptr) <0xffffffff>
at <0xffffffff>
at (wrapper managed-to-native) Python.Runtime.Runtime.PyImport_ImportModule (string) <0xffffffff>
at Python.Runtime.PythonEngine.ImportModule (string) <0x0000f>
at FranticX.Scripting.PythonNetScriptEngine.ImportModule (string) <0x00063>
at Deadline.Scripting.DeadlineScriptEngine.ImportModule (string) <0x00023>
at Deadline.Applications.Consoles.DeadlineRepositoryUICommand.a (bool) <0x000cb>
at Deadline.Applications.Consoles.DeadlineRepositoryUICommand.RequestFormsPythonEngine () <0x0002f>
at Deadline.Applications.Consoles.ExecuteScript.Invoke (string[]) <0x001db>
at FranticX.Applications.Consoles.ConsoleCommandInvoker.InvokeCommand (string[]) <0x00455>
at Deadline.Submission.Submit.Perform (string[]) <0x0010f>
at a.a (string[]) <0x004b7>
at (wrapper runtime-invoke) .runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>
[/code]

It’s probably worth mentioning, I’m using it to run a custom script, so my command is:

/opt/Thinkbox/Deadline7/bin/deadlinecommand ExecuteScript “/repos_path/custom/scripts/General/MyScript.py”

At this point this does not currently work, but I have submitted this as a request to the devs and hopefully we’ll be able to get this into a future build.

Hi Dwight

Have there been any updates on being able to run ExecuteScript without an x server?

Thanks

Dave

Sure. Try:

ExecuteScriptNoGui Executes the script without importing any GUI elements. [Filename] The path to a given script file

/opt/Thinkbox/Deadline7/bin/deadlinecommand ExecuteScriptNoGui "/repos_path/custom/scripts/General/MyScript.py"

Thanks Mike