AWS Thinkbox Discussion Forums

Slave script help

Hi, I am writing a slave script and I can’t get any command to work.



I have this loop



[…]

For Each slaveName In slavenames

SlaveUtils.SendRemoteCommandNoWait slaveName, “cmd /C \Alpha\alpha\data\admin\sources\Autodesk\Maya 8.5\Maya85_win32\test.bat”

count = count + 1

Next

[…]



I am trying to run a bat file or exe file from the network but it never seems to work…is it possible to do?



thanks

Sylvain Berger | Technical Director | Alpha Vision


Hi Sylvain,



Try this instead:



[…]

For Each slaveName In slavenames

SlaveUtils.SendRemoteCommandNoWait slaveName,

“\Alpha\alpha\data\admin\sources\Autodesk\Maya8.5\Maya85_win32\test.bat”

count = count + 1

Next

[…]



Notice that I removed the cmd /C part, since this is only necessary if

your running dos commands (as opposed to executables or batch files). I

tested this here and it worked great.



Cheers,

thanks a lot for the help Ryan.



This works great!



Sylvain Berger | Technical Director | Alpha Vision


Privacy | Site terms | Cookie preferences