Page 1 of 1

Run batch file before and after job

Posted: Sat Mar 16, 2019 1:17 am
by tpolson01
Is there a way to automatically run a launch command on all render nodes before a render node starts rendering a new job then run another launch command on all render nodes after it finishes rendering the job?

Re: Run batch file before and after job

Posted: Sun Mar 17, 2019 4:31 pm
by timurhai
Hi.
You can write a command wrapper.
For example some script that will replace "render command", which can contain:

Code: Select all

pre_script.sh
"render command"
post_script.sh

Re: Run batch file before and after job

Posted: Mon Apr 01, 2019 5:28 pm
by tpolson01
Thanks. Where would I place this? Or is this a custom render command script?

Re: Run batch file before and after job

Posted: Mon Apr 01, 2019 7:56 pm
by timurhai
Yes, this is a custom command script.
You should replace your "render command" by this.