hello,
I’m trying to schedule a jobs manual for execute a dos command on each server from a pool.
please find some info:
schedule job from script:
deadlinecommand.exe d:\jobinfo d:\jobplug d:\command_to_execute.bat
jobinfo:
Plugin=CommandScript
Pool=testing
Name=testcmd
Priority=01
PoolExclusive=true
InitialStatus=suspended
Frames=1
Chunksize=1
jobplug:
StartupDirectory=c:<br>
command_to_execute.bat:
copy c:\image.jpg c:\image2.jpg
job sheduled fine, but when the tasks is run on a slave, nothing is copied …
any idea ?
Thanks
If you want to run a batch command on all the machines in your farm, you
can do so directly from the Deadline Monitor while in Super User mode.
Simply place your batch file on a network accessible path that all of
your machines can see (UNC or mapped drive), then right-click on the
machines you want to run the batch file on in the Monitor and select
Remote Control -> Exec Command.
When prompted, simply specify the network path to the batch file and
click OK.
Cheers,
- Ryan
–
–
Ryan Russell
Frantic Films Software
http://software.franticfilms.com/
204-949-0070
Hello,
I know this option, but I want to schedule it with deadline.
This job will be dependant from another scheduled job.
Does execute cmd.exe on slave by deadline need special option to run ?
Sorry about that, I misunderstood what you were trying to do.
The problem is that the third file that is passed to deadlinecommand
needs to be a LIST of executables/batch files to run, not just a single
batch file. See the documentation here:
http://software.franticfilms.com/index.aspx?page=deadline/commandScript/moreinfo
So you should create a file called command_list.txt (for example). The
contents of this file should look like:
\network\path\to\command_to_execute.bat:
Then submit your job using:
deadlinecommand.exe d:\jobinfo d:\jobplug d:\command_list.txt
Hope this helps!
- Ryan
–
–
Ryan Russell
Frantic Films Software
http://software.franticfilms.com/
204-949-0070
Thanks you ! its work fine now.
then, how can schedule this job just before a task is send to one slave ?
does it possible ?
something like a pre-action or post-action before a rendering task.
any idea ?
hello,
any idea for lastest question ?
thanks
Sorry for the delayed reply. If you want to run a batch file as a
pre-action or post-action to a task, you will have to manually modify
the plugin you are using to render. The plugins are all scripted, so you
can modify them to suit your needs.
A good example of pre and post actions can be found in our XSI plugin
(assuming your using Deadline 2.7). Navigate to
\your\repository\plugins\xsi and open XSI.dlinit. You will see the
following lines:
PreRenderTasks=FinishedFrameCount=0; ExecuteScriptFile(
“PreRenderTasks.ffs” );
PostRenderTasks=ExecuteScriptFile( “PostRenderTasks.ffs” );
These are actions that are performed before and after the task renders.
Notice that they both run script files that also exist in the xsi folder
(PreRenderTasks.ffs and PostRenderTasks.ffs). If you were using the XSI
plugin for rendering, you would add your pre/post actions to these
files. If the plugin you’re rendering with doesn’t already have the
PreRenderTasks and PostRenderTasks defined in the *.dlinit file, you can
add them, and then create the necessary script files yourself (use the
XSI plugin as a guide).
The documentation for the scripting language used in the Deadline
plugins can be found here:
http://software.franticfilms.com/index.aspx?page=deadline/sdk/scriptplugin
Hopefully this helps you out. If you have any questions, let us know.
Cheers,
- Ryan
–
–
Ryan Russell
Frantic Films Software
http://software.franticfilms.com/
204-949-0070
Hello,
It’s exactly what I need.
Thanks you for your information.