Hi, I would like to know if it is possible to call the ProcessUtils.IsProcessRunning() on a remote computer?
I want to do a slave script to be able to check if some process are running, start and stop these processes.
Hi, I would like to know if it is possible to call the ProcessUtils.IsProcessRunning() on a remote computer?
I want to do a slave script to be able to check if some process are running, start and stop these processes.
Check out Process.GetProcessesByName(…):
msdn.microsoft.com/en-us/library/725c3z81.aspx
To use this, you would need to import from System.Diagnostics first:
from System.Diagnostics import *
Cheers,
nice! So i guess the MSDN library will become my new bible hey?
Thanks for the tip
What would be the best method for logging in slaves scripting? I would like to print the content of my variables during the execution of the script?
Thanks
If this is a plugin script, use LogInfo(…):
LogInfo( "this is some text" )
If this is a pre/post job script, use ScriptUtils.LogText(…):
from Deadline.Scripting import *
...
ScriptUtils.LogText( "this is some text" )
Hope this helps!