Run batch file before and after job

General discussions and questions.
Post Reply
tpolson01
Posts: 9
Joined: Sat Mar 16, 2019 1:05 am

Run batch file before and after job

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post 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
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
tpolson01
Posts: 9
Joined: Sat Mar 16, 2019 1:05 am

Re: Run batch file before and after job

Post by tpolson01 »

Thanks. Where would I place this? Or is this a custom render command script?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post by timurhai »

Yes, this is a custom command script.
You should replace your "render command" by this.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply