Hello all.
Sorry for my english…
I have a problem.
I create script in \deadlinerepository\scripts\slaves\launchapp\
from Deadline.Scripting import *
def __main__ ( *args ):
slaves = SlaveUtils.GetSelectedSlaveNames ()
for slave in slaves:
SlaveUtils.SendRemoteCommand( slave, "C:\Program Files\Autodesk\3ds Max 9\vrayspawner90.exe")
But this script dont work
Hey there!
You’ve almost got it, there are just a couple things that you need to change with your Remote Command. Firstly, you’ll need to have ‘Execute’ before the path to the exe, since this function uses Deadline’s remote commands. Second, you’ll have to quote your path (since it contains spaces), as well as use double backslashes or forward slashes for your path, since single backslashes are used as escape characters.
So, after all that, what you should get is this:
from Deadline.Scripting import *
def __main__ ( *args ):
slaves = SlaveUtils.GetSelectedSlaveNames ()
for slave in slaves:
SlaveUtils.SendRemoteCommand( slave, "Execute \"C:/Program Files/Autodesk/3ds Max 9/vrayspawner90.exe\"")
Cheers,
I don’t understand… This code is fairly straightforward and yet it doesn’t work when i test it.
Neither does Mike’s code: http://support.na.primefocusworld.com/viewtopic.php?f=57&t=3233&start=0 which i guess has been thoroughly tested already…
Is there an “option” to activate somewhere before SendRemoteCommand actually work ?
The rest of the python commands seems to work fine…
The Remote Administration option under the Launcher Settings in the Repository Options needs to be enabled before this will work, so maybe check that first. To enable it, open the Deadline Monitor and enter Super User mode. Then select Tools -> Configure Repository Options and scroll down to find the Launcher Settings. If it’s disabled, the Launcher won’t respond to remote commands.
Cheers,
Hey Ryan,
Thanks for the fast answer! I checked what you said but no everything is setup correctly, Remote Administration is true as every other options in Launcher Settings…
I need to precise i’m still using Deadline 3.0.33353 (3.1 create issues with 3dsmax’s elements in our configuration).
I read somewhere that commandbgnowait was flawed in ver 3.0 but we do not use it in this simple script so it should not be the issue…
Could it be the issue that we updated to ver 3.1 some time ago and then reverted to ver 3.0 ?
It seems every python command works except this one, and remotely controlling slaves works fine via monitor’s standard options but not via scripting… Weird huh ?
Would it help to reinstall the repository ? or the slaves ? or both ?
It could very well be a bug in 3.0. If you want to move back to 3.1, there is a patch on our forums that addresses the general black RE issue:
viewtopic.php?f=11&t=3384&start=10#p13122
Cheers,