Hi guys!
I have a python script that I want to run periodiclly across the farm.
Ideally I can right click on the slave in the monitor and select a custom option that executes my python script on that machine, similar to the remote execution command but I don’t want to type in all the execution commands every time I want to run the script. Basically I want to be lazy, right click on a slave and have it go with no further questions other than what I have in my python script.
My question is; is there a way to do this? And If so, what is the way? It seems like maybe ClientUtils.ExecuteScript() would work but I am using the psutls module in my python code and I don’t know if this plays nice with the python implementation in deadline.
Anyway, any input on this would be appreciated, thanks a lot!
Cheers,
Christian
Without going into crazy detail, if this is going to be run manually from time to time, steal the code for the VNC script and modify it. It looks like you’ve already started here, but you can find it at “[repo]\scripts\Slaves\ConnectWithVNC.py”
The ExecuteScript function runs a Python script within Deadline’s environment unfortunately. You’d need to set up your Python paths so Deadline will look for psutils in the right place across the farm.
thinkboxsoftware.com/deadlin … n_Settings
The remote execute stuff you’ll either need to call DeadlineCommand:
deadlinecommand remotecontrol mobile-010,mobile-010 Execute “c:\windows\system32\calc.exe”
Or use the SlaveUtils module (this’ll put the results in the Montor’s remote command result window):
SlaveUtils.SendRemoteCommand(“mobile-010”, “Exectue “c:\windows\system32\calc.exe””)
Strange thing is ‘Execute’ is definitely case-sensitive. I’ll log that as a bug.
Thanks a lot!!! That worked like a charm. 
Cheers,
Christian